私はまだ Rails の初心者であり、学ぶべきことがたくさんあります。
現在、すべての画像を一度に表示できますが、問題ありません。
<!-- For the Thumbnail strip -->
<% @examples.each do |e| %>
<ul class="example-grid"><%= e.description %></ul>
<% if e.image.url != "/images/original/missing.png" %>
<p><%= image_tag e.image.url, size: "200x200" %></p>
<% end %>
<% end %>
@examples[0]
しかし、最初に の画像を表示し、そこから 2link_to
つのbutton_to
パスを表示したいと考えてい@example[current + 1]
ます。そんな感じ。
これはどのように作動しますか?
SOFコミュニティありがとう!