Yeah, I've had a couple of weird moments going through the Rails book, but mostly because I forgot to type a semicolon or something like that.
However, creating two almost identical objects (the two Product.new calls) is a serious logic error that's usually really hard to track down regardless of the presence of a compiler.
by Andrei Maxim — Dec 25
However, creating two almost identical objects (the two Product.new calls) is a serious logic error that's usually really hard to track down regardless of the presence of a compiler.