<%= image_tag book.logo_url %>

If you are feeling ambitious, check out file_column plugin. It lets you upload the image to the file structure.

-Nathan

Kevin Burk wrote:
I'm working with a list template and want to use the image_tag to keep the path to my images constant. The challenge is that I need to dynamically pass the URL to the image tag. What's the correct syntax for this? The standard syntax:


<%= image_tag  "logo.jpg" %>

doesn't apply because I need to pass "book.logo_url" to the image_tag.

If I was using absolute paths, it would be

<img src="<%= book.logo_url %>" />

How do I combine the two?

Thanks,

Kevin Burk

_______________________________________________
Sdruby mailing list
[email protected]
http://lists.sdruby.com/mailman/listinfo/sdruby

Reply via email to