Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I disable Rails 3.1 Asset Pipeline?

How can I temporarily disable the asset pipeline functionality that Rails 3.1 provides? (I am performing an upgrade)

like image 670
amaseuk Avatar asked Sep 08 '11 11:09

amaseuk


2 Answers

try this in your application.rb

config.assets.enabled = false
like image 127
David Barlow Avatar answered Nov 18 '22 20:11

David Barlow


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

like image 5
Cam Song Avatar answered Nov 18 '22 21:11

Cam Song