> <%= image_tag("/images/suggested/#{suggested.title}",
size=>
> "100x100") %>
will work
On Aug 4, 2006, at 1:58 PM, Mason Kessinger wrote:
> 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:
>
> <img src="/images/suggested/<%= suggested.title %>"
height="100"
> width="100" />
>
>
> 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
>
> --
> Posted via http://www.ruby-forum.com/.
> _______________________________________________
> Rails mailing list
> Rails@lists.rubyonrails.org
> http://lists.rubyonrails.org/mailman/listinfo/rails