Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Open Source > BOOK: Beginning Ruby on Rails
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old August 2nd, 2007, 09:11 AM
Registered User
 
Join Date: Jul 2007
Location: Minsk, , Belarus.
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?

  #2 (permalink)  
Old August 9th, 2007, 03:05 PM
Registered User
 
Join Date: Jul 2007
Location: , , .
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

read the Errata

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

  #3 (permalink)  
Old August 9th, 2007, 03:57 PM
Registered User
 
Join Date: Jul 2007
Location: , , .
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

  #4 (permalink)  
Old August 13th, 2007, 04:18 PM
Registered User
 
Join Date: Jul 2007
Location: Minsk, , Belarus.
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to Andron_MTZ
Default

cazalot, thank you

 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 04:05 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.