Nested Resource Generator?

Thanks in advance for your help!

I’ve found and read a number of blog postings that introduce Rails 2
concepts, including nested resources. In my newest Rails app, I ran the
new generate scaffold command for the child resource, and then proceeded
to make all the manual changes to nest that resource inside of the
parent resource.

There was a LOT of typing to change this, which brings me to ask: Has
anyone written a generator that can create a resource already nested
within another?

On 2/6/08, Stephen A. [email protected] wrote:

anyone written a generator that can create a resource already nested
within another?

It’s not a generator, but have a look at the resource_controller plugin.

I recently wrote about it on infoq

http://www.infoq.com/news/2008/01/rails-resource-controller


Rick DeNatale

My blog on Ruby
http://talklikeaduck.denhaven2.com/

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs