Every time I create a controller, rails generate a controler_name.js and a controller_name.css file on app/assets folder. I already disable the config.assets.enabled param on application.rb but this not solve my problem.
How can I disable the generator for those files when creating controller ?
Thanks
You can pass
--skip-assetsto your command to prevent these files from being created:If you want something more permanent, you can turn it off altogether. Add this to
config/application.rb(from How do I turn off automatic stylesheet/javascript generation on Rails 3.1?)