Forum: Ruby on Rails Help me understanding assets path

0fa73332c8e4a3b06ea439fd3f034322?d=identicon&s=25 Ronald Fischer (rovf)
on 2014-05-31 13:04
=======================================================
SOLVED! See:
https://railsforum.com/topic/1975-help-me-understa...
=======================================================


(Note: Since the question is still unsolved, I crossposted it at
https://railsforum.com/topic/1975-help-me-understa...)

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?
Please log in before posting. Registration is free and takes only a minute.
Existing account

NEW: Do you have a Google/GoogleMail, Yahoo or Facebook account? No registration required!
Log in with Google account | Log in with Yahoo account | Log in with Facebook account
No account? Register here.