How can I make scaffold only for controller and views if model already exists? [duplicate]
Try this ,
rails g scaffold_controller controller_name
You will find more options via
rails generate -h
For scaffold with only 'name' column:
rails g scaffold User name --skip
Just add some columns.
Look to rails g scaffold -h
output for additional information.
If you want just controller and views without the whole scaffold you can do:
rails generate controller Users index show