#118 new
Obie

Typo in Jeremy Hubert's "What is the Rails Way..." code

Reported by Obie | February 27th, 2008 @ 06:37 AM | in Second Edition

From: Ron Bingham

Hi Obie,

Just started your book "The Rails Way" thanks for a much needed comprehensive reference. As I'm prone to do I stared reading the last chapter first. "What Is the Rails Way (To You)? I found Jeremy Huberts quote amusing since in the book there is a missing " in the code.

"c7Fd9uk3nu4ck0td8iv9oz1nv0ak5ljjSw2iv6mu9pz1ly3im0cq7il4ta2y".gsub(/\w\d/,").gsub('jj',' ') - printed

"c7Fd9uk3nu4ck0td8iv9oz1nv0ak5ljjSw2iv6mu9pz1ly3im0cq7il4ta2y".gsub(/\w\d/,"").gsub('jj',' ') - what works

Didn't find an an "ERRATA" link so am sending to your email.

Thanks again for all the great work you are doing!

Comments and changes to this ticket

  • Obie

    Obie July 24th, 2008 @ 05:17 AM

      • → Tag changed from “” to “afterword errata typo”
      • → Milestone changed from “Next Printing” to “Second Edition”
  • diego nunes

    diego nunes August 4th, 2008 @ 12:37 PM

    . . Is it really a typo? I think the problem was when choosing which quotation mark to use. I'm pretty sure that you, when wrote the book, didn't actually use all those fancy and curvy quotation marks. Someone could misread two single quotation marks for one double quotation mark, and that's where the problem begins.

    . . If we're going pedantic about that, make sure that the quotation marks that encloses the white space (the second parameter to the second gsub) should be swapped, as they currently are in the wrong order (closing first, opening after).

Please Login or create a free account to add a new comment.

You can update this ticket by sending an email to from your email client. (help)

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

People watching this ticket