# Newbie question: missing template

**URL:** <https://www.ruby-forum.com/t/newbie-question-missing-template/61476>\
**Category:** Rails\
**Created:** [May 24, 2006, 10:50am UTC](https://www.ruby-forum.com/t/newbie-question-missing-template/61476 "2006-05-24T10:50:15Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![akh](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/3ec8ea/32.png) [@akh](https://www.ruby-forum.com/u/akh)\
**Post date:** [May 24, 2006, 10:50am UTC](https://www.ruby-forum.com/t/newbie-question-missing-template/61476/1 "2006-05-24T10:50:15Z")

</div>

Hi

I’m new to this forum and new to Rails so excuse me if this is a daft  
question.

I’m following the [ONLamp.com](http://ONLamp.com) tuturial and all has been well untill  
changing the template for the recipes. I have followed the instructions  
and added this code to the controller:

class RecipeController \< ApplicationController  
scaffold :recipe  
def list  
@recipes = Recipe.find\_all  
end  
end

I have also created the list.rhtml file to the  
C:\rails\cookbook\app\views\recipe directory using the html supplied.

However I now get this error when trying to view the recipe list:  
Template is missing

Missing template ./script/…/config/…/app/views/recipe/list.rhtml

I have tried re-doing all the above, and restarting the server…any  
ideas?

TIA  
A

---

<div class="post-metadata">

**Author:** ![akh](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/3ec8ea/32.png) [@akh](https://www.ruby-forum.com/u/akh)\
**Post date:** [May 24, 2006, 11:07am UTC](https://www.ruby-forum.com/t/newbie-question-missing-template/61476/2 "2006-05-24T11:07:56Z")

</div>

Sorry glazed over the part where you said you had it, oops…

---

<div class="post-metadata">

**Author:** ![akh](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/3ec8ea/32.png) [@akh](https://www.ruby-forum.com/u/akh)\
**Post date:** [May 24, 2006, 10:58am UTC](https://www.ruby-forum.com/t/newbie-question-missing-template/61476/3 "2006-05-24T10:58:49Z")

</div>

You need to have a list.rhtml file in your views/recipe/ directory.

Rob

---

<div class="post-metadata">

**Author:** ![akh](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/3ec8ea/32.png) [@akh](https://www.ruby-forum.com/u/akh)\
**Post date:** [May 24, 2006, 1:58pm UTC](https://www.ruby-forum.com/t/newbie-question-missing-template/61476/4 "2006-05-24T13:58:01Z")

</div>

Rob M. wrote:

> Sorry glazed over the part where you said you had it, oops…

no problem - i stil acnt work it out. feel like i’m missing a really  
obviuos point!

A

---

<div class="post-metadata">

**Author:** ![akh](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/3ec8ea/32.png) [@akh](https://www.ruby-forum.com/u/akh)\
**Post date:** [May 24, 2006, 9:07pm UTC](https://www.ruby-forum.com/t/newbie-question-missing-template/61476/5 "2006-05-24T21:07:56Z")

</div>

Hi Angela,

Angela Hilton wrote:

> However I now get this error when trying to view the recipe list:  
> Template is missing
> 
> Missing template ./script/…/config/…/app/views/recipe/list.rhtml

If you’re using Windows, I recommend you make doubly sure that your file  
is  
really named list.rhtml.

I’ve seen folks have problems where Explorer was not set to the Detail  
view.  
They’d be seeing, for example, list.rhtml but when they set Explorer to  
the  
Detail view they could see that the real name was list.rhtml.txt or  
something. Fire back if that’s not the problem.

Best regards,  
Bill

---

<div class="post-metadata">

**Author:** ![akh](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/3ec8ea/32.png) [@akh](https://www.ruby-forum.com/u/akh)\
**Post date:** [May 24, 2006, 5:48pm UTC](https://www.ruby-forum.com/t/newbie-question-missing-template/61476/6 "2006-05-24T17:48:33Z")

</div>

Hmmm, what does your directory structure look like inside of /apps?
