开发者

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

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜