私のアプリケーションには、とりわけ画像パスの4つのフィールドを持つ製品モデルがあります。これを使ってスライドショーを作成します。
ただし、これらすべてのパスを1つの大きなテキストフィールドに入れて、機能するもので区切ってください(改行はフォームで処理するのが最も簡単です)。
私は次のようなことを考えていました:
<% for ... in @screenshots %>
<%= lightbox_to(@product.screenshot, @product.screenshot, "screenshots") %>
<% end %>
そして、その結果が次のようになることを望んでいます。
<%= lightbox_to(@product.screenshot1, @product.screenshot1, "screenshots") %>
<%= lightbox_to(@product.screenshot2, @product.screenshot2, "screenshots") %>
<%= lightbox_to(@product.screenshot3, @product.screenshot3, "screenshots") %>
...
あなたの入力は大歓迎です!
ヴァル