sprockets 2.0.1 question (3.1.0 and 3.1.1.rc2)

Hello!

I installed sprockets 2.0.1 and found that javascript_include_tag and stylesheet_link_tag dont’ support script and style files from public
folder anymore. If I use javascript_include_tag ‘/some-file-from-public.js’ I get error that file not found in assets paths.

Is it right behaviour? I prefer to use big 3rd party libraries like tinymce from public folder.

In any case with new 2.0.1 version documentation pages http://api.rubyonrails.org/classes/ActionView/Helpers/AssetTagHelper/JavascriptTagHelpers.html#method-i-javascript_include_tag and http://api.rubyonrails.org/classes/ActionView/Helpers/AssetTagHelper/StylesheetTagHelpers.html#method-i-stylesheet_link_tag are obsoleted.

Unfortunately I don’t have time to investigate changes deep now :frowning:

Why don’t you put you them in the vendor/assets folder? Makes more sence there than the public folder anyway

Thank you! This is good way. I missed the time then public folder is completely obsolete.

Exactly things like robots.txt still lives there

You can still put assets in public/assets/ the thing is asset helper
methods included from sprockets are not documented. This is confusing
and we should fix it.

Hello!

Santiago Pastorino, Wael Nasreddine thanks for answers. Excuse me I want to disturb you once more.

Problem Description:

That would be the vendor folder. Or in a gem: https://github.com/spohlenz/tinymce-rails

Vendorizing an external Javascript library is pretty easy in 3.1.