Paperclip displaying multiple 'missing image' tags on edit page
So I have an object that has multiple photos (through use of a model
called asset). I'm using paperclip to upload the photos and it's working
fine. On my show page I call
`
class="grid_3">Photos:
` and the photos display perfectly. when I click on the edit page: `
'asset_fields', :locals => { :f => asset } %> ` the partial is rendered: `
<% unless f.object.new_record? %>
<% @address.assets.each do |asset| %>
<li class='grid_3'><%= image_tag(asset.photo.url, size: '100x100') %></li>
<% end %>
`
at this point the photos each show up 3 times along with an extra image
tag with a 'missing' photo placeholder. I would say I've tried different
things but I just don't see what is wrong with the code. Any ideas?
No comments:
Post a Comment