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 August 2nd, 2007, 09:11 AM
Registered User
 
Join Date: Jul 2007
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to Andron_MTZ
Default Chapter 7 - initializeinitialize

I do how in book, add method:
def clear_cart
    @cart = get_cart
    @cart.[u]initializeinitialize</u>
end

and add method:
def clear
    @purchases = []
    @price = 0.0
end

connecting to action clear_cart - error:
  NoMethodError in BuyController#clear_cart
  undefined method `initializeinitialize' for #<Cart:0x4737374>
  ..
  ..
  Response
  Headers: {"cookie"=>[], "Cache-Control"=>"no-cache"}


what is initializeinitialize?

 
Old August 9th, 2007, 03:05 PM
Registered User
 
Join Date: Jul 2007
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

read the Errata

http://www.wrox.com/WileyCDA/WroxTit...ew_errata.html

 
Old August 9th, 2007, 03:57 PM
Registered User
 
Join Date: Jul 2007
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Also make sure that you download the code. that will help you as well.. theres a lot of typos that aren't cought in errata

 
Old August 13th, 2007, 04:18 PM
Registered User
 
Join Date: Jul 2007
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to Andron_MTZ
Default

cazalot, thank you






Similar Threads
Thread Thread Starter Forum Replies Last Post
Chapter 2 - End of chapter exercises whizzkid1892 BOOK: Beginning PHP5, Apache, and MySQL Web Development ISBN: 978-0-7645-7966-0 1 July 30th, 2008 12:02 PM
chapter 7 - chapter 11 pelopito BOOK: Beginning CSS: Cascading Style Sheets for Web Design ISBN: 978-0-7645-7642-3 3 January 6th, 2008 11:40 AM
Generics chapter 12 difficult chapter i found ...? Larryz C# 2005 1 July 4th, 2007 09:40 PM





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