# Show thumbnails in view with acts\_as\_attachment

**URL:** <https://www.ruby-forum.com/t/show-thumbnails-in-view-with-acts-as-attachment/89471>\
**Category:** Rails\
**Created:** [March 20, 2007, 6:59pm UTC](https://www.ruby-forum.com/t/show-thumbnails-in-view-with-acts-as-attachment/89471 "2007-03-20T18:59:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![taylorstrait](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/b5a626/32.png) [@taylorstrait](https://www.ruby-forum.com/u/taylorstrait)\
**Post date:** [March 20, 2007, 6:59pm UTC](https://www.ruby-forum.com/t/show-thumbnails-in-view-with-acts-as-attachment/89471/1 "2007-03-20T18:59:47Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![taylorstrait](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/b5a626/32.png) [@taylorstrait](https://www.ruby-forum.com/u/taylorstrait)\
**Post date:** [March 20, 2007, 8:13pm UTC](https://www.ruby-forum.com/t/show-thumbnails-in-view-with-acts-as-attachment/89471/2 "2007-03-20T20:13:30Z")

</div>

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](http://weblog.techno-weenie.net/articles/acts_as_attachment/thumbnailing)

On Mar 20, 11:59 am, Taylor S. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

---

<div class="post-metadata">

**Author:** ![taylorstrait](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/b5a626/32.png) [@taylorstrait](https://www.ruby-forum.com/u/taylorstrait)\
**Post date:** [March 20, 2007, 9:03pm UTC](https://www.ruby-forum.com/t/show-thumbnails-in-view-with-acts-as-attachment/89471/3 "2007-03-20T21:03:11Z")

</div>

Thanks. I was able to finally get it with this:

\<%= image\_tag @image.public\_filename(‘medium’) %\>
