Choylton B. Higginbottom
Choylton B. Higginbottom

Reputation: 2304

unexpected '=', expecting kEND

I am getting this error: "syntax error, unexpected '=', expecting kEND". The error traces back to the first instance of "=" in a partial:

<hr class="featurette-divider">
<a class="btn btn-large btn-primary" onclick="location.href=nextUrl;return false">More Lunar Science Facts ></a>
<hr class="featurette-divider">

The route for the partial is app/views/layouts/_next.html.erb.

The partial is called in the view, here:

<article>
<div id="container">
    <br/>
    <div class="img-polaroid pull-right">
        <%= image_tag("IMG/twelveB.png") %>
    </div>
    <header>
        <h1>Header</h1>
    </header>
    <p>
        ...content...
    </p>
    <%= render 'layouts/next' %>
    For printable version: <a href="DOCS/card12.pdf">Click Here</a>
</article>

Upvotes: 0

Views: 166

Answers (1)

Chuck
Chuck

Reputation: 237010

It sounds like you have forgotten to close an ERb <% %> tag pair. This HTML is being interpreted as Ruby.

Upvotes: 0

Related Questions