# Helper within a Helper? (IMAGE PLACEMENT)

**URL:** <https://www.ruby-forum.com/t/helper-within-a-helper-image-placement/101420>\
**Category:** Rails\
**Created:** [August 4, 2006, 7:58pm UTC](https://www.ruby-forum.com/t/helper-within-a-helper-image-placement/101420 "2006-08-04T19:58:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![masonkessinger](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/4da419/32.png) [@masonkessinger](https://www.ruby-forum.com/u/masonkessinger)\
**Post date:** [August 4, 2006, 7:58pm UTC](https://www.ruby-forum.com/t/helper-within-a-helper-image-placement/101420/1 "2006-08-04T19:58:00Z")

</div>

I would like to call an image to be displayed based on its title. It is  
easy enough for me to do this like this:

![](https://www.ruby-forum.com/images/suggested/<%=%20suggested.title%20%>)

But I want to stick within the ruby code and I’m trying this:

\<%= image\_tag("/images/suggested/\<%= suggested.title %\>", size=\>  
“100x100”) %\>

but its not working.

Anything i’m missing? Any better alternatives?

Thanks!

mason

---

<div class="post-metadata">

**Author:** ![masonkessinger](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/4da419/32.png) [@masonkessinger](https://www.ruby-forum.com/u/masonkessinger)\
**Post date:** [August 4, 2006, 8:06pm UTC](https://www.ruby-forum.com/t/helper-within-a-helper-image-placement/101420/2 "2006-08-04T20:06:52Z")

</div>

> \<%= image\_tag("/images/suggested/#{suggested.title}", size=\>  
> “100x100”) %\>

will work
