Hi

A noob question on using routes with multiple nested resources -

The nested resources are as follows -

-> Projects
        -> Assessments
                ->Findings

A Project has many Assessments, an Assessment has many Findings.

At presents it all works well for the following URL -

/projects/1/assessments/1/

Now that I have added the code to nest Findings in the associated
Assessment I need to add the correct Route. At the moment
(understandably) I get "Route Error' when I browse to the following -

/projects/1/assessments/1/findings/1/

My routes.rb is currently configured as follows -

map.resources :projects, :has_many => :assessments
map.resources :assessments, :has_many => :findings

What is the best route syntax for making this route work?

I also plan to add resolutions as nested resource to findings.

Thanks,

Jason

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to