I have a new rails application.
I want to add a javascript library and it contains a lot of resources.
When I put these files in app/assets/
, I can't get them from my browser.
Example:
I have app/assets/img/bg.png
, but when I use the URL http://localhost:3001/img/bg.png
, I receive only No route matches [GET] "/img/bg.png"
Example 2:
I have app/assets/swf/ZeroClipboard.swf
, but when I use the URL http://localhost:3001/swf/ZeroClipboard.swf
, I receive only No route matches [GET] "/swf/ZeroClipboard.swf"
Example 3 (vendor assets):
I have app/vendor/swf/ZeroClipboard.swf
, but when I use the URL http://localhost:3001/swf/ZeroClipboard.swf
, I receive only No route matches [GET] "/swf/ZeroClipboard.swf"
Where should I put the library files to have the ability to access them directly?
Rails 4.2