How to completely remove the Rails Asset Pipeline

I do not want to use Asset Pipeline for a Rails 3.1 application, so I insert a line in my /application.rb configuration to disable it config.assets.enabled = false

I also remove asset gems because I don't want to use sassl, cofeescript and uglyfier

My question is:

  • How to complete the removal of the pipeline, because when I create a scaffold, it creates files in the asset

  • Where can I get jquery and rails.js files to put them in my shared directory

+4
source share
1 answer

See guide for tuning generators. to prevent asset generation, set the assets to false.

You can get jQuery from the jquery website. Then you can get the unobtrusive javascript adapter for jquery from github .

+2
source

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


All Articles