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: <td><%= h design.title %></td> <td><% @design = design %><%= image_tag url_for_file_column("design", "design_file", "thumb") %></td> <td><%= link_to ''show'', design_path(design) %></td> <td><%= link_to "#{design.notes_count} notes", notes_path(design) %></ td> 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. --~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
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 On Dec 6, 8:32 pm, DEfusion <david.sp...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> 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: > > <td><%= h design.title %></td> > <td><% @design = design %><%= image_tag url_for_file_column("design", > "design_file", "thumb") %></td> > <td><%= link_to ''show'', design_path(design) %></td> > <td><%= link_to "#{design.notes_count} notes", notes_path(design) %></ > td> > > 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.--~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
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. On Dec 6, 8:36 pm, DEfusion <david.sp...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> 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 > > On Dec 6, 8:32 pm, DEfusion <david.sp...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > 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: > > > <td><%= h design.title %></td> > > <td><% @design = design %><%= image_tag url_for_file_column("design", > > "design_file", "thumb") %></td> > > <td><%= link_to ''show'', design_path(design) %></td> > > <td><%= link_to "#{design.notes_count} notes", notes_path(design) %></ > > td> > > > 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.--~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---