Forum: Ruby on Rails Default image_tag folder

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
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)
This topic is locked and can not be replied to.