UPDATE: The corrected second printing of the print edition is now available.
The print version of the Ruby on Rails Tutorial, 2nd edition, has recently been released, and this is a warning not to buy it, at least not yet.You might be tempted to think this is some kind of clever reverse-psychology marketing strategy, but alas it is not: the print book's source code listings have been hopelessly mangled, with all angle brackets, curly braces, and quotes inexplicably omitted. This makes the source listings worse than useless. (The online HTML book and ebooks are unaffected and remain correct as before.)
I have alerted the publisher to the problem; how they'll respond remains to be seen, but my hope is that it will involve a recall, correction, and re-issue. As a result, I hope and expect this to be fixed eventually. I plan to send out an announcement when it is. UPDATE: The plan is to freeze the current inventory and make a corrected second printing. I'd like to thank the publisher for their quick response.
In the meantime, do not buy the print version of the Ruby on Rails Tutorial until the second printing is available. Please accept my apologies for any inconvenience.