# Issue where rails edit restful path is not rendering a template properly. Any Ideas?

**URL:** <https://www.ruby-forum.com/t/issue-where-rails-edit-restful-path-is-not-rendering-a-template-properly-any-ideas/136530>\
**Category:** Rails\
**Created:** [May 3, 2008, 3:07am UTC](https://www.ruby-forum.com/t/issue-where-rails-edit-restful-path-is-not-rendering-a-template-properly-any-ideas/136530 "2008-05-03T03:07:51Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [May 3, 2008, 3:07am UTC](https://www.ruby-forum.com/t/issue-where-rails-edit-restful-path-is-not-rendering-a-template-properly-any-ideas/136530/1 "2008-05-03T03:07:51Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [May 3, 2008, 3:45am UTC](https://www.ruby-forum.com/t/issue-where-rails-edit-restful-path-is-not-rendering-a-template-properly-any-ideas/136530/2 "2008-05-03T03:45:52Z")

</div>

Hi –

On Fri, 2 May 2008, removed\_email\_address@domain.invalid 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](http://www.rubypal.com) for details and updates!
