How can I disable Rails 3.1 Asset Pipeline?
How can I temporarily disable the asset pipeline functionality that Rails 3.1 p开发者_如何学Pythonrovides? (I am performing an upgrade)
try this in your application.rb
config.assets.enabled = false
Putting this line inside the application.rb
config.assets.enabled = false
You can also disable the asset pipeline while creating a new application by passing the —skip-sprockets option.
rails new appname --skip-sprockets
You can use --skip-assets
with generate
to skip producing asset stubs.
refer: http://guides.rubyonrails.org/asset_pipeline.html#what-is-the-asset-pipeline
精彩评论