[Rails] Re: Multiple Paperclip Images on Index
> <% for post in @posts %>
> <tr><td>
> <%= image_tag(post.assets.first.url(:thumb)) %>
> </td><td>
> ...whatever else you show in the index about each post
> </td></tr>
> <% end %>
>
> The key thing here is that post.assets is a collection of all related
> assets.
>
> Walter
Thanks for your reply Walter. I have tried what you suggested but I get
the following ...
undefined method `url'
I think I had tried the way you suggested previously but with the same
result.
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home