Reputation: 1391
Running RUby 1.9.3-p194 and Rails 3.2.3 and the latest paperclip gem.
I am following the tutorial here: Multiple File Uploads with Paperclip & Rails 3 (Screencast)
I've set up a post to have multiple images. And I build 5 image objects in my controller.
However, this does not appear to show up in my view:
<% f.fields_for(:postimages) do |asset_fields| %>
<p><%= asset_fields.file_field :image %></p>
<% end %>
Any ideas on what I'm doing wrong?
Upvotes: 0
Views: 196
Reputation: 704
Pretty sure you need an = on that first line, so
<%= f.fields_for(:postimages) ... %>
Upvotes: 1