Ruby on Rails: How to organize properly JS and CSS files? -


i use slickgrid plugin in rails 3 application. contains several js , css files should include in html page.

it possible put needed js files in public/javascripts directory , css files in public/stylesheets directory. however, don't solution because breaks plugin package files structure.

i put plugin files in 1 place (i thought vendor/plugins, better place?), , include needed files there. possible ?

what proper way include js , css files when integrating plugin ?

i think jammit can accomplish you're trying do. besides packaging, embedding, gzipping assets, allows store javascript , stylesheets anywhere in app. images (if not embedded) problem though.


Comments

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -