I want to get back to this and make a generator for it, but for now here is my checklist based mostly off of this post.
- Create resource scaffolding ruby script/generate scaffold_resource Nestee title:string body:text
- ruby script/generate scaffold_resource Nester body:text
- Setup relationships in models
- Modify Routes
- Modify controller of nested resource
- add before_filter to assign nestee
- include @nester = @nestee.nester.find(params[:id]) if params[:id]
- ammend the *_url calls with @parent
- remove all instances of Nester.find(params[:id])
- scope the nested class finder_all with the nestee
- add before_filter to assign nestee
- Modify the views of nested resource
- edit.rhtml - formfor, linkto 'show'
- show.rhtml - link_to 'edit' (at bottom)
- index.rhtml - linkto 'edit' and linkto 'destroy'
- Provide links to nested resource