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. -- 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
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_attachment/thumbnailing On Mar 20, 11:59 am, Taylor Strait <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> 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. > > -- > Posted viahttp://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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Thanks. I was able to finally get it with this: <%= image_tag @image.public_filename(''medium'') %> -- 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---