route not recognised when nested routes are used

hi guys,

I have a resource, "parts". Another resource, "fits" relates to


Can you post the full stacktrace? My guess is you have a reference to get_vehicles that is causing the problem. The nested routes look like they are working. However, it’s hard to determine based on the information provided.

Darian Shimy

This doesn't answer your question directly, but the canonical way to
do multiple nestings is with a block:

map.resources :parts do |parts|
  parts.resources :image
  parts.resources :fits

good morning, scott,

yep, i somehow got passed that. I believed that it was because

  1. i ran "rake routes "
  2. and realised that i did not provide a @part object.

thank you :slight_smile: