rails g scaffold for existing model and DB table

user984621 picture user984621 · Mar 21, 2012 · Viewed 9.7k times · Source

I would like to create a structure with rails g scaffold Article, but I have already created the table Articles and model Articles.

Is there any way to do that?

Answer

mikdiet picture mikdiet · Mar 21, 2012

rails generate scaffold_controller Article