# Nested map.resources no longer working with Rails 2 RC

**URL:** <https://www.ruby-forum.com/t/nested-map-resources-no-longer-working-with-rails-2-rc/122352>\
**Category:** Rails\
**Created:** [December 6, 2007, 9:32pm UTC](https://www.ruby-forum.com/t/nested-map-resources-no-longer-working-with-rails-2-rc/122352 "2007-12-06T21:32:18Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![DEfusion](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/e68b1a/32.png) [@DEfusion](https://www.ruby-forum.com/u/DEfusion)\
**Post date:** [December 6, 2007, 9:32pm UTC](https://www.ruby-forum.com/t/nested-map-resources-no-longer-working-with-rails-2-rc/122352/1 "2007-12-06T21:32:18Z")

</div>

I have the following routes setup:

map.resources :designs, :has\_many =\> :notes  
map.resources :designs do |designs|  
designs.resources :notes, :has\_many =\> :comments  
designs.resources :notes do |notes|  
notes.resources :comments  
end  
end

And this view:

\<%= h design.title %\> \<% @design = design %\>\<%= image\_tag url\_for\_file\_column("design", "design\_file", "thumb") %\> \<%= link\_to 'show', design\_path(design) %\> \<%= link\_to "#{design.notes\_count} notes", notes\_path(design) %\>

Is giving me the error: undefined method `notes\_path’ for, it used to  
work (we were on 1.2.2 but I’ve also tried 1.2.6) but it doesn’t any  
more (I’ve tried RC1 - 1.99.0 & RC2 1.99.1).

I’ve not seen anything in the RC documentation that gives me a clue as  
to why this isn’t working anymore and I’m a bit stuck, so any advice  
would be really helpful.

---

<div class="post-metadata">

**Author:** ![DEfusion](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/e68b1a/32.png) [@DEfusion](https://www.ruby-forum.com/u/DEfusion)\
**Post date:** [December 6, 2007, 9:36pm UTC](https://www.ruby-forum.com/t/nested-map-resources-no-longer-working-with-rails-2-rc/122352/2 "2007-12-06T21:36:59Z")

</div>

Note I’ve also tried changing the routes to the following, with no  
luck:

map.resources :designs do |designs|  
designs.resources :notes do |notes|  
notes.resources :comments  
end  
end

---

<div class="post-metadata">

**Author:** ![DEfusion](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/e68b1a/32.png) [@DEfusion](https://www.ruby-forum.com/u/DEfusion)\
**Post date:** [December 6, 2007, 9:46pm UTC](https://www.ruby-forum.com/t/nested-map-resources-no-longer-working-with-rails-2-rc/122352/3 "2007-12-06T21:46:22Z")

</div>

Ah-ha I have it, I needed design\_notes\_path, I just ran the rake  
routes script and that gave me all I needed to know, I can’t believe I  
spent so long looking for this answer when it was sitting right in  
front of me in the preview release notes. Sometimes you just can’t see  
what’s in front of your face.
