- I would like to know if there is some standard (Rails-version-independent) folder in Rails application where to put javascripts or stylesheets.
- when I insert javascript_include_tag and stylesheet_link_tag they link to /assets by default. How to specify folder, containing javascripts or folder containing stylesheets?
- I read that there is some Rails.application.config.assets.paths configuration thing which lets me to specify folder for assets (btw. in which .rb file should I assign its value?). But it seems to point out a single folder for all JS and CSS files together, but I want to store them in separate folders.
I would like to know if there is some standard (Rails-version-independent) folder in Rails
Share
javascript_include_tag will be linked correctly in that case.
For rails 2 the same, just leave assets out.
those tags are helpers, so they point to the asset folder and respectively the folder /javascripts or /stylesheets.
generates a link to /assets/javascripts/something.js
You can edit the path in config/application.rb just place
in there