# Missing template isn't missing

**URL:** <https://www.ruby-forum.com/t/missing-template-isnt-missing/84030>\
**Category:** Rails\
**Created:** [January 31, 2007, 5:18pm UTC](https://www.ruby-forum.com/t/missing-template-isnt-missing/84030 "2007-01-31T17:18:59Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![milo](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/85e7bf/32.png) [@milo](https://www.ruby-forum.com/u/milo)\
**Post date:** [January 31, 2007, 5:18pm UTC](https://www.ruby-forum.com/t/missing-template-isnt-missing/84030/1 "2007-01-31T17:18:59Z")

</div>

I have just added a new method to a controller, and though all the  
pre-existing methods are working as expected the new ones do not. I get  
the following error:

Missing template  
script/…/config/…/app/views/repository/new\_method.rhtml

The path given above is correct relative to the application’s base  
directory (not the public\_html). The view is present in the  
app/views/repository directory and has the correct name, suffix and  
content. Even stranger is that if I remove views relating to the working  
methods then they still keep working…  
The problem seems to be unrelated to whether I use the full url or the  
ones mapped in config/routes.rb, which has such lines as:

map.connect ‘/new\_method’, :controller =\> ‘repository’, :action =\>  
‘new\_method’

This problem has appeared when developing with WEBrick. Can anyone  
suggest what the cause might be?

---

<div class="post-metadata">

**Author:** ![milo](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/85e7bf/32.png) [@milo](https://www.ruby-forum.com/u/milo)\
**Post date:** [January 31, 2007, 7:40pm UTC](https://www.ruby-forum.com/t/missing-template-isnt-missing/84030/2 "2007-01-31T19:40:53Z")

</div>

are you working in development mode? rather than production mode

alternatively, have you tried restarting the WEBrick?

/ak

Milo T. schrieb:

---

<div class="post-metadata">

**Author:** ![milo](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/85e7bf/32.png) [@milo](https://www.ruby-forum.com/u/milo)\
**Post date:** [January 31, 2007, 10:03pm UTC](https://www.ruby-forum.com/t/missing-template-isnt-missing/84030/3 "2007-01-31T22:03:44Z")

</div>

Andy K. wrote:

> are you working in development mode? rather than production mode

I’ve been running it in development mode.

> alternatively, have you tried restarting the WEBrick?

I’ve re-started it a few times and it does not  
seem to have made any difference, which is very odd.

---

<div class="post-metadata">

**Author:** ![milo](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/85e7bf/32.png) [@milo](https://www.ruby-forum.com/u/milo)\
**Post date:** [February 1, 2007, 1:08pm UTC](https://www.ruby-forum.com/t/missing-template-isnt-missing/84030/4 "2007-02-01T13:08:51Z")

</div>

Finally fixed it. I never did find the cause, but upgrading Rails and  
components to 1.2.1 got it working again.
