ruben.pierich-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2008-May-03 01:07 UTC
Issue where rails edit restful path is not rendering a template properly. Any Ideas?
Hello, In my routes file I have map.resources :patients which allows me to use edit_patient_path(patient) in my view. Unfourtunately when I try to go to the path generated by edit_patient_path(patient) it says the template file is missing. I have an edit.html.erb template file in the proper directory. Has anyone seen this issue before? Thanks, Ruben --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
David A. Black
2008-May-03 01:44 UTC
Re: Issue where rails edit restful path is not rendering a template properly. Any Ideas?
Hi -- On Fri, 2 May 2008, ruben.pierich-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org wrote:> > Hello, > > In my routes file I have map.resources :patients which allows me to > use edit_patient_path(patient) in my view. Unfourtunately when I try > to go to the path generated by edit_patient_path(patient) it says the > template file is missing. I have an edit.html.erb template file in > the proper directory. Has anyone seen this issue before?The first thing that comes to mind, and I could be wide of the mark, is whether you''ve got everything in the plural (patients_controller.rb, views/patients, etc.). I don''t have an exact scenario in mind but I''ve seen problems in this area (like creating both singular and plural by mistake and not cleaning up) cause failures like this. David -- Rails training from David A. Black and Ruby Power and Light: INTRO TO RAILS June 9-12 Berlin ADVANCING WITH RAILS June 16-19 Berlin INTRO TO RAILS June 24-27 London (Skills Matter) See http://www.rubypal.com for details and updates! --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---