If you have already created data models in your rails app but wish to scaffold or stub out the controller and the views without starting over the models, you can use the option scaffold_controller

rails generate scaffold_controller

For a list of possible generation options, use the -h flag for help.

rails generate -h