Archive RSS Email

The Ruby on Rails Tutorial, now with Twitter's Bootstrap

Mar 9, 2012 • posted by Michael Hartl

Due to popular demand, I have prepared a new version of the Ruby on Rails Tutorial using Twitter's Bootstrap framework. The result, which represents the final draft of the 2nd edition, can be found here:


This is a substantial revision, involving significant code changes, new mockups, and new screenshots. As usual, bug and typo reports are welcome ([email protected]). Once it looks like the kinks have been worked out, I'll release a full PDF of the 2nd edition.

I'd like to thank reader Colm Tuite for his excellent work in helping to convert the book's sample app to Bootstrap. I'd also like to thank Thomas McDonald for his outstanding work on the bootstrap-sass gem.

Since some readers might find themselves stuck in the middle of the pre-Bootstrap version, I have included a copy here:


Otherwise, I suggest using the latest version:


Thanks to all those who encouraged me to make this change. It was a lot of work, but based on reader feedback I'm confident that it's the right move. Bootstrap is an excellent CSS and UI framework, and I'm excited to have it be part of the Rails Tutorial.

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.)