Forum: Ruby on Rails Default image_tag folder

5352e063f844eed9d9c2777f20246e31?d=identicon&s=25 Dmitrij B. (dmitrij_b)
on 2013-03-09 22:17
Hey, guys. In documentation i read: "By default, files are loaded from
public/images". I add for example <%= image_tag "logo.gif" %>

When i check html code in browser i see next:  <img alt="Logo"
src="/assets/public/images/logo.gif">. Why folder assets? The default
should have been <img alt="Logo" src="public/images/logo.gif">?
5f94b9b346c2aa648a80bc259978e5bc?d=identicon&s=25 Colin Law (Guest)
on 2013-03-09 23:10
(Received via mailing list)
On 9 March 2013 21:17, Dmitrij B. <lists@ruby-forum.com> wrote:
> Hey, guys. In documentation i read: "By default, files are loaded from
> public/images". I add for example <%= image_tag "logo.gif" %>
>
> When i check html code in browser i see next:  <img alt="Logo"
> src="/assets/public/images/logo.gif">. Why folder assets? The default
> should have been <img alt="Logo" src="public/images/logo.gif">?

The docs are out of date, have a look at
http://guides.rubyonrails.org/asset_pipeline.html for the new paths.

Colin
5352e063f844eed9d9c2777f20246e31?d=identicon&s=25 Dmitrij B. (dmitrij_b)
on 2013-03-10 17:06
Thanks)
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.