In a Ruby on Rails project, by default, the root of the HTML source for the server is the public directory. So your link will be as follows:
<img src="images/rss.jpg" alt="rss feed" />
But in a Rails project, it's better to use the built-in helper:
<%= image_tag("rss.jpg", :alt => "rss feed") %>
This will create the correct link to the image plus, if you ever add claim servers, etc., it will work with them.
scottd Nov 29 '09 at 5:36 2009-11-29 05:36
source share