I've put my favicon into app/assets/images and include in my header
<%= favicon_link_tag 'my_favicon.jpg' %>
The favicon is correctly recognized by the browser, so it works
perfectly. When viewing the source code, I see to my surprise that the
following HTML code is generated:
<link href="/assets/my_favicon.jpg" rel="shortcut icon"
type="image/vnd.microsoft.icon" />
Aside from the MIME type (I had expected that rails would generate
image/jpeg), what really puzzles me is the path. The file is definitely
in /assets/images, not in /assets . How can the browser locate the file?
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit
https://groups.google.com/d/msgid/rubyonrails-talk/66e93e14a8fcfe55dee696e451f6ea17%40ruby-forum.com.
For more options, visit https://groups.google.com/d/optout.