Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Open Source > BOOK: Beginning Ruby on Rails
BOOK: Beginning Ruby on Rails
This is the forum to discuss the Wrox book Beginning Ruby on Rails by Steve Holzner Ph.D.; ISBN: 9780470069158
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning Ruby on Rails section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old July 13th, 2007, 06:53 PM
Registered User
Join Date: Jul 2007
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Chapter 4 - Two Views, not working for me...


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)

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.


Old January 3rd, 2008, 07:30 AM
Friend of Wrox
Join Date: Dec 2003
Posts: 488
Thanks: 0
Thanked 3 Times in 3 Posts


Don't actually have the source code or the book. Looks like a routing error to me.


render(:controller=>:goto, :action => :lunch)
Charlie Harvey's website - linux, perl, java, anarchism and punk rock: http://charlieharvey.org.uk

Similar Threads
Thread Thread Starter Forum Replies Last Post
Chapter 6: store not working Giorgio84 BOOK: Beginning Ruby on Rails 2 June 17th, 2007 11:17 PM
Chapter 1, First App, No, it's not working redthor BOOK: Beginning Ruby on Rails 2 February 1st, 2007 08:32 PM
Chapter 7 - List Views Not Refreshing VBNovice BOOK: Beginning Visual Basic 2005 Databases ISBN: 978-0-7645-8894-5 3 January 31st, 2007 08:26 PM
converting Access 2000 views to Sql views matta Classic ASP Professional 1 January 26th, 2005 03:37 PM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.