Forum: Ruby on Rails Help me understanding assets path

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
0fa73332c8e4a3b06ea439fd3f034322?d=identicon&s=25 Ronald Fischer (rovf)
on 2014-05-31 13:04

(Note: Since the question is still unsolved, I crossposted it at

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/" />

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?
This topic is locked and can not be replied to.