开发者

How can I disable Rails 3.1 Asset Pipeline?

开发者 https://www.devze.com 2023-04-03 17:42 出处:网络
How can I temporarily disable the asset pipeline functionality that Rails 3.1 p开发者_如何学Pythonrovides?

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

0

精彩评论

暂无评论...
验证码 换一张
取 消