Hi everyone,
In my application I have a products model which has among other things four fields for image paths. I use this to build a slide show.
However, I would love to have all those paths in one big text field and seperate them by whatever works (linebreak would be the easiest to handle in the form).
I was thinking something like:
<% for ... in @screenshots %>
<%= lightbox_to(@product.screenshot, @product.screenshot, "screenshots") %>
<% end %>
and would be hoping for that to result in:
<%= lightbox_to(@product.screenshot1, @product.screenshot1, "screenshots") %>
<%= lightbox_to(@product.screenshot2, @product.screenshot2, "screenshots") %>
<%= lightbox_to(@product.screenshot3, @product.screenshot3, "screenshots") %>
...
Your input is greatly appreciated!
Val