On Jul 24, 1:06 am, Jan Kadera <[email protected]> wrote: > Well, I figured this one out now also...apparently there is huge difference > between those two strings: > /pic/picture.jpg > pic/picture.jpg > Which I guess means there are no relatives paths in rails, right?
It's better to use the image_tag helper than code full paths to images in your app. The convention is like this: 1. create an images subdirectory under public in your rails app 2. link to an image via the image_tag helper So in your case you'd create public/images/picture.jpg and link to it in a template like <%= image_tag "picture.jpg" %>. -- miles -- 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 [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

