Is there a "Rails Way" include a jQuery plugin in the Asset Pipeline? -
many jquery plugins have next directory structures:
/<plugin name> ../css ../images ../js
the css files have relative links images in them. want include these plugins in rails way
under asset pipeline, , doesn't involve having renamed file references remove relative links. there such rails way?
could it's overkill include already-minified jquery plugin in asset pipeline?
you should seek add together assets load path recommended way, far know. if application you're running has assets-pipeline activated, should find assets after expanding path in application.rb
config.assets.paths << rails.root.join("plugins/plugin_name/assets/")
not shure, if asked if not, should check: http://guides.rubyonrails.org/asset_pipeline.html#asset-organization
remeber restart server
ruby-on-rails-3 jquery-plugins ruby-on-rails-3.2 asset-pipeline
No comments:
Post a Comment