Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Open Source > BOOK: Professional Ruby On Rails ISBN: 978-0-470-22388-8
Password Reminder
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
BOOK: Professional Ruby On Rails ISBN: 978-0-470-22388-8
This is the forum to discuss the Wrox book Professional Ruby on Rails by Noel Rappin; ISBN: 9780470223888
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional Ruby On Rails ISBN: 978-0-470-22388-8 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 Display Modes
  #1 (permalink)  
Old November 15th, 2009, 12:34 AM
Registered User
Join Date: Nov 2009
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Lightbulb Patch for rails 2.3.4 with ruby 1.9+

I was having trouble with the error message:

undefined method `^' for etc

whilst running the Recipe editor in Ch.1 (I hadn't made it past p.22 really)
so I spent some time searching and found that it is a Rails 2.3.4 bug that is documented here .

I'm not that pro to understand what anyone at lighthouse was talking about, but I did copy the patch provided. Of course those folks are speaking among fellow rails nerds who do not need instructions for applying patches. Another option would be to downgrade to a more stable version, rails 2.3.2 perhaps. I found some instructions for this exact patch problem at this blog which didn't work for me. Finally I just located and edited the ruby/gems/1.9.1/gems/activesupport-2.3.4/lib/active_support/message_verifier.rb file and manually altered it to reflect the changes in the patch, restarted my server and Voila! It worked.

So, until the delayed Rails 2.3.5 is available, I would suggest anyone running 2.3.4 with ruby 1.9+ look into this issue and consider your options. Diagnostics: the view (in this case /recipes/new) loads fine the first time, but after that, the weird errors appear (involving undefined method `^' ). Check this by deleting the cookies in your browser for localhost:3000 and that should reset so the view can function once again before breaking.

Good luck
Reply With Quote

Thread Tools
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
Need Help with Ruby on Rails - Please Help sfazel Other Programming Languages 1 April 8th, 2008 05:03 AM
Beginning Ruby on Rails - chapter 11: Ajax & Rails rornet BOOK: Beginning Ruby on Rails 1 June 22nd, 2007 04:10 PM
Routing Error - Ruby on Rails dodgevipe1 Intro Programming 1 May 5th, 2007 06:03 PM
"Beginning Ruby on Rails" book Opher Ruby 1 March 16th, 2007 11:21 AM
REQUEST: A book discussing Ruby on Rails jilly Wrox Book Feedback 1 August 15th, 2005 11:03 AM

All times are GMT -4. The time now is 11:49 PM.

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