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

Interview Question on Ruby on Rails

Inserting and Moving elements inside Ruby Array