disable inherited_resources in ruby on rails

Solution 1

config.app_generators.scaffold_controller = :scaffold_controller

Solution 2

config.generators do |g|
  g.scaffold_controller "scaffold_controller"
end

Solution 3

To force rails to use the normal scaffold generator, add -c=scaffold_generator to the end of the command

Comments

Popular Posts

How to pass hash in Postman

nginx: unrecognized service

Bootstrap Select Picker append add new item if search not exist

Reading Excel Sheets using "Roo" gem in ruby on rails

Add CORS to Nginx on AWS Elastic Beanstalk

Enable gzip compression on Elastic Beanstalk with nginx

Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock'

Get video duration by URL in Ruby on Rails

site-enables nginx setting in ruby in rails