Archive RSS Email

Chapter 7 update

Mar 2, 2010 • posted by Michael Hartl

As a couple different readers noted, there was a mistake in the flow of Chapter 7 of the Ruby on Rails Tutorial book: the error messages shown in Figure 7.5 didn't actually appear in the tutorial as written, since there was no call to @user.save in the create action to generate them. In the process of fixing this problem, I realized there were other structural issues that needed to be addressed, including properly test-driving the failing create action and introducing message expectations a little earlier. The result is that Section 7.2: Signup failure has been substantially rewritten, and Section 7.3: Signup success has been revised as well. If you've already worked through Chapter 7, you might want to revisit the updated sections so that you'll be ready for Chapter 8, which I hope to release some time next week.

Michael Hartl

I’m Michael Hartl—author, educator, and entrepreneur. I’m probably best known as the creator of the Ruby on Rails Tutorial, a book and screencast series that together constitute one of the leading introductions to web development. Once called his “favorite book” by Wikipedia founder Jimmy Wales, the Ruby on Rails Tutorial currently has over 150 5-star reviews at Amazon. I’m also (in)famous for creating Tau Day and The Tau Manifesto, which have inspired an international movement dedicated to the proposition that “pi is wrong.” (For example, as a result of The Tau Manifesto, MIT releases their admissions decisions each year at “Tau Time” (6:28 p.m.), and typing tau/2 at Google yields 3.14159…) Finally, I’m a founder of Softcover, a publishing system and sales platform for technical authors, which among other things powers both The Tau Manifesto and the Ruby on Rails Tutorial.

I’m a graduate of Harvard College and have a Ph.D. in Physics from Caltech, where I studied black hole dynamics and was an award-winning instructor in theoretical and computational physics. I’m also an alumnus of Y Combinator, the entrepreneur program that has produced companies such as Dropbox and Airbnb. (Alas, my own Y Combinator startup was neither Dropbox nor Airbnb.)