How to disable Rails 3.1 Asset Pipeline?

How do I temporarily disable the pipeline functionality provided by Rails 3.1? (I am updating)

+6
source share
2 answers

try this in application.rb

 config.assets.enabled = false 
+16
source

Put this line inside application.rb

config.assets.enabled = false

You can also disable the asset pipeline when creating a new application by passing the -skip-sprockets option.

rails new appname --skip-sprockets

You can use --skip-assets with generate to skip the creation of asset stubs.

: http://guides.rubyonrails.org/asset_pipeline.html#what-is-the-asset-pipeline

+5
source

Source: https://habr.com/ru/post/896873/


All Articles