Chapter 4 - Two Views, not working for me...
Hello,
I'm working through this book. In Chapter 4, the section on "Working With Two Views", I'm running into an issue with "Selecting Which View to Render".
In the goto_controller.rb file, I'm told to enter the code:
if Time.now.hour == 12
render(:action => :lunch)
end
in the first action. When I run it in my browser, I get the error message:
Template is missing
Missing template ./script/../config/..//app/views//actionlunch.rhtml
Now, I'm not entering anything different from the book (I changed the hour to match my actual time so it would call the lunch.rhtml view page). What could be going on? Am I repeatedly entering a typo and just keep missing it?
Any input would be appreciated.
Thanks!
|