This project is archived and is in readonly mode.

#1979 incomplete
akia

Command to generate nested resource

Reported by akia | February 15th, 2009 @ 08:09 PM | in 3.x

The syntax may be:

generate scaffold Post title:string body:text comment:nested name:string message:text

Then Post and Comment resource will be created and Comment is nested in Post

And nested model:

generate model Post title:string body:text comment:nested name:string message:text

Any idea about this feature?

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>

Pages