Go To Homepage



Book Details
Beginning Ruby on Rails E-Commerce: From Novice to Professional book cover
  • By Christian Hellsten Jarkko Laine
  • ISBN13: 978-1-59059-736-1
  • ISBN10: 1-59059-736-2
  • 448 pp.
  • Published Nov 2006
  • Print Book Price: $34.99
  • eBook Price: $24.49



Errata Submission

If you think that you've found an error in Beginning Ruby on Rails E-Commerce: From Novice to Professional, please let us know about it. You will find any confirmed erratum below, so you can check if your concern has already been addressed.

Submit Errata
Beginning Ruby on Rails E-Commerce: From Novice to Professional (978-1-59059-736-1)

Errata

Issue Author's Response
Hi,

I am having a lot of problems with this book. I'm still on chapter two. It seems that nearly all the code is well outdated and doesn't work with the current versions of ruby/rake etc.

Is there updated source code that works with current versions available?

Thanks,
Ronan
Hi Ronan,

The book is more than 3,5 years old and Rails has gone through several versions since it was written. There's no way to keep a full up-to-date resource for everything in the book. However, feel free to ask for help in the book's support forum in http://groups.google.com/group/railsecommerce if you can't find the current syntax for some specific problem.

Cheers,
//jarkko
p. 284

in the book:
"require 'payment/authorize_net'
include ActiveMerchant::Billing

class Order < ActiveRecord::Base"

shouldn't this instead read:
"class Order < ActiveRecord::Base
require 'payment/authorize_net'
include ActiveMerchant::Billing"

with the require and include statements as part of the class, not outside of it?
It doesn't matter where you require a file as long as you don't use the code in that file before the call.

As far as the include command goes, the current way includes the module in the global scope, whereas your solution would only include it to the Order class. Both ways are totally valid.