Forum: Ruby on Rails show thumbnails in view with acts_as_attachment

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
8e7e5b934fcbcdfb475072685755457f?d=identicon&s=25 Taylor Strait (Guest)
on 2007-03-20 18:59
Sorry, my brain is fried after getting this plugin working with
polymorphic associations.  I have an Image, and Image.thumbnails returns
an array of thumbnails with names like "medium", "small", etc.  So how
do I display this in a view?  Is there a method for doing this?  There
is a .thumbnail method but it has no documentation.  Am I forced to
parse the array manually everytime?  Thanks.
0c344de5db3869f5d9e9a3b57bce62fa?d=identicon&s=25 Chad (Guest)
on 2007-03-20 20:13
(Received via mailing list)
I don't know if you have seen this or not but it helped me out, it is
a tutorial on thumbnailing using acts_as_attachment
http://weblog.techno-weenie.net/articles/acts_as_a...

On Mar 20, 11:59 am, Taylor Strait <rails-mailing-l...@andreas-s.net>
8e7e5b934fcbcdfb475072685755457f?d=identicon&s=25 Taylor Strait (Guest)
on 2007-03-20 21:03
Thanks.  I was able to finally get it with this:

<%= image_tag @image.public_filename('medium') %>
This topic is locked and can not be replied to.