Generate Scaffold for already Existing files

Generate Scaffold for already Existing files.

First you can check all the exiting options available to you by using a following command.

rails generate -h

if you'd like to generate a controller scaffold for your model, you can use scaffold_controller you can also use --skip option to skip any files which exist.

Comments

Popular posts from this blog

Inserting and Moving elements inside Ruby Array

Difference between Validations, Callbacks and Observers