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 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
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.