`rails g copy ModelName/ControllerName -> NewModelName/NewControllerName new_field_for_copied_model_controller_combination:string new_relation:references`

262 views
Skip to first unread message

Manuel Korfmann

unread,
Sep 20, 2019, 11:49:55 AM9/20/19
to rubyonra...@googlegroups.com
How about a new generator?

It copies a Controller including views and it’s related model including relations and callbacks to NewModelName and NewControllerName, newly added fields can be specified like for a scaffold generator.

Josh Brody

unread,
Sep 21, 2019, 2:05:14 AM9/21/19
to Ruby on Rails: Talk
I like this.

Would dropping columns also be possible?
Reply all
Reply to author
Forward
0 new messages