will_paginate を使用して画像を表示しようとしています。keyword_end の問題が発生し、期待しています。
エラーをスローしている.erbは次のとおりです。エラーは image_tag の行にあります
<h2>My Links</h2><br>
<p>Check out the links you've shared here, or <a href="/add-link">add a new link</a></p>
<p>
<strong>My Links</strong><br />
<ul class="">
<% @links.each do |link| -%>
<li> <a href="<%= link.content %>"><%= link.title %></a><br /> </li>
<li> <%= link.description %><br /> </li>
<li> <%= link.category %><br /> </li>
<% if link.image_blob %>
<%= image_tag url_for(:action => 'show_image', :id => link.id), :size => "300x200") %>
<% end %>
<% end -%>
</ul>
</p>
<%= will_paginate @links, :page_links => false %>
ここに私のアプリケーションヘルパー関数があります
def show_image
puts "in show_image"
@link = Link.find(params[:id])
send_data @link.image_blob, :type => 'image/png', :disposition => 'inline'
end