title: Rails syntax error: unexpected keyword_ensure, expecting keyword_end
body: <pre><code>&lt;h1&gt;Get Ready&lt;/h1&gt;
  &lt;% if params[:ballot_position].to_i &gt; 1 %&gt;
  &lt;p&gt;
  Voter &lt;%= params[:ballot_position].to_i - 1 %&gt;, go get voter &lt;%= params[:ballot_position] %&gt;
  and switch places with them.
  &lt;/p&gt;
  &lt;p&gt;
  Voter &lt;%= params[:ballot_position] %&gt;, when you are ready, click the button marked "Ready" below.
  &lt;/p&gt;
  &lt;% @ballot_link = "/vote/#{params[:election_id]}/ballot/#{params[:ballot_position]}" %&gt;
  &lt;a href="&lt;%= @ballot_link %&gt;" class="btn btn-primary"&gt;Ready&lt;/a&gt;
  </code></pre>
  
  <p>Above code seems to be resulting in:</p>
  
  <pre><code>ready.html.erb:13: syntax error, unexpected keyword_ensure, expecting keyword_end
  ready.html.erb:15: syntax error, unexpected $end, expecting keyword_end
  </code></pre>
  
  <p>What's going on? What's wrong with this syntax?</p>