Deliver to your Kindle or other device


Try it free

Sample the beginning of this book for free

Deliver to your Kindle or other device

Anybody can read Kindle books—even without a Kindle device—with the FREE Kindle app for smartphones, tablets and computers.
Ruby on Rails Tutorial: Learn Web Development with Rails (2nd Edition) (Addison-Wesley Professional Ruby Series)

Ruby on Rails Tutorial: Learn Web Development with Rails (2nd Edition) (Addison-Wesley Professional Ruby Series) [Kindle Edition]

Michael Hartl
3.6 out of 5 stars  See all reviews (5 customer reviews)

Print List Price: £28.99
Kindle Price: £13.29 includes VAT* & free wireless delivery via Amazon Whispernet
You Save: £15.70 (54%)
* Unlike print books, digital books are subject to VAT.


Amazon Price New from Used from
Kindle Edition £13.29  
Paperback £23.19  
Kindle Daily Deal
Kindle Daily Deal: At least 60% off
Each day we unveil a new book deal at a specially discounted price--for that day only. Learn more about the Kindle Daily Deal or sign up for the Kindle Daily Deal Newsletter to receive free e-mail notifications about each day's deal.

Special Offers and Product Promotions

  • Purchase any Kindle Book sold by and receive £1 credit to try out our Digital Music Store. Here's how (terms and conditions apply)

Product Description


“My former company (CD Baby) was one of the first to loudly switch to Ruby on Rails, and then even more loudly switch back to PHP (Google me to read about the drama). This book by Michael Hartl came so highly recommended that I had to try it, and the Ruby on Rails™ Tutorial is what I used to switch back to Rails again.”

—From the Foreword by Derek Sivers (, formerly, Founder, CD Baby; currently, Founder, Thoughts Ltd.


“Michael Hartl’s Rails Tutorial book is the #1 (and only, in my opinion) place to start when it comes to books about learning Rails. . . . It’s an amazing piece of work and, unusually, walks you through building a Rails app from start to finish with testing. If you want to read just one book and feel like a Rails master by the end of it, pick the Ruby on Rails™ Tutorial.”

—Peter Cooper, editor, Ruby Inside


“Grounded in the real world.”

—I Programmer (, by Ian Elliot


“The book gives you the theory and practice, while the videos focus on showing you in person how it’s done. Highly recommended combo.”

—Antonio Cangiano, Software Engineer, IBM


“The author is clearly an expert at the Ruby language and the Rails framework, but more than that, he is a working software engineer who introduces best practices throughout the text.”

—Greg Charles, Senior Software Developer, Fairway Technologies


“Overall, these video tutorials should be a great resource for anyone new to Rails.”

—Michael Morin,


“Hands-down, I would recommend this book to anyone wanting to get into Ruby on Rails development.”

—Michael Crump, Microsoft MVP

Product Description

Ruby on Rails™ Tutorial by Michael Hartl has become a must-read for developers learning how to build Rails apps.”

Peter Cooper, Editor of Ruby Inside


Using Rails, developers can build web applications of exceptional elegance and power. Although its remarkable capabilities have made Ruby on Rails one of the world’s most popular web development frameworks, it can be challenging to learn and use. Ruby on Rails™ Tutorial, Second Edition, is the solution. Best-selling author and leading Rails developer Michael Hartl teaches Rails by guiding you through the development of your own complete sample application using the latest techniques in Rails web development. The updates to this edition include all-new site design using Twitter’s Bootstrap; coverage of the new asset pipeline, including Sprockets and Sass; behavior-driven development (BDD) with Capybara and RSpec; better automated testing with Guard and Spork; roll your own authentication with has_secure_password; and an introduction to Gherkin and Cucumber.


You’ll find integrated tutorials not only for Rails, but also for the essential Ruby, HTML, CSS, JavaScript, and SQL skills you’ll need when developing web applications. Hartl explains how each new technique solves a real-world problem, and he demonstrates this with bite-sized code that’s simple enough to understand, yet novel enough to be useful. Whatever your previous web development experience, this book will guide you to true Rails mastery.


This book will help you

  • Install and set up your Rails development environment
  • Go beyond generated code to truly understand how to build Rails applications from scratch
  • Learn test-driven development (TDD) with RSpec
  • Effectively use the Model-View-Controller (MVC) pattern
  • Structure applications using the REST architecture
  • Build static pages and transform them into dynamic ones
  • Master the Ruby programming skills all Rails developers need
  • Define high-quality site layouts and data models
  • Implement registration and authentication systems, including validation and secure passwords
  • Update, display, and delete users
  • Add social features and microblogging, including an introduction to Ajax
  • Record version changes with Git and share code at GitHub
  • Simplify application deployment with Heroku

Product details

  • Format: Kindle Edition
  • File Size: 41266 KB
  • Print Length: 600 pages
  • Simultaneous Device Usage: Up to 5 simultaneous devices, per publisher limits
  • Publisher: Addison-Wesley Professional; 2 edition (27 July 2012)
  • Sold by: Amazon Media EU S.à r.l.
  • Language: English
  • ISBN-10: 0133047237
  • ISBN-13: 978-0133047233
  • ASIN: B008RN1SJO
  • Text-to-Speech: Enabled
  • X-Ray:
  • Average Customer Review: 3.6 out of 5 stars  See all reviews (5 customer reviews)
  • Amazon Bestsellers Rank: #177,045 Paid in Kindle Store (See Top 100 Paid in Kindle Store)
  •  Would you like to give feedback on images?

More About the Author

Discover books, learn about writers, and more.

What Other Items Do Customers Buy After Viewing This Item?

Customer Reviews

Most Helpful Customer Reviews
4 of 4 people found the following review helpful
5.0 out of 5 stars Best tech tutorial I've read 6 Dec 2012
By mpd106
Format:Paperback|Verified Purchase
I'm rarely compelled to review products, but this book has forced my hand. Strictly speaking I've been using the web version for the past few days, but only five chapters in I've had to go ahead and order the print copy because it's so devastatingly awesome.

I honestly consider this the finest technical instruction that I've ever encountered. As a long-time developer taking his first few tentative steps with both Ruby and Rails, this book is perfectly pitched. Moreover, the author's style is terrifyingly encouraging--it seems as though he's actually read a whole bunch of other flawed tech resources and avoided their pitfalls. Miraculous stuff!

Do yourself a favor--if you're new to Rails, and especially if you're new to both Ruby and Rails--buy this book. Now! Go!
Comment | 
Was this review helpful to you?
2 of 2 people found the following review helpful
3.0 out of 5 stars Not as good as I hoped :( 1 Jan 2014
Format:Paperback|Verified Purchase
Everyone, including my best friend, said this is THE book I should get. I've been doing web development on the side for a few years now, so I'm not a newbie by any means. This book, I was hoping, would get me the extra lift to become a serious web/rails developer. The scope of it is certainly that, however, I don't find it to be a very good tutorial. I needed over a week to fight myself through the first 2 chapters, and that's not because rails is not explained correctly, but because the environment set-up is the part that lacks proper exposure. I have spent more time on Google, than reading the book. I also find that the author is slightly Apple-oriented so if you dare do this in Linux or Windows, by any means do not rely on the book, nor the links it provides. The information you'll get is either outdated or incomplete. So, environment-wise the book is really poor.

When it comes to rails itself, and once and if you actually get there (a big if, if you ask me), the book is fine. A little outdated, and thus, a bit dear as well, but it gets you where you're supposed to get.
Comment | 
Was this review helpful to you?
3 of 4 people found the following review helpful
By Kevin
I have been using this book and the video series for the last few weeks. I have also got a lot of other Rails books and, apart from the Obie Fernandez one, this is the only other one I would recommend.

The book is challenging, but only because it really pushes you to learn by giving you lots of information in a succinct way. He directs you well to other sources of information to fill in the gaps, and the lessons are well paced and really thorough. If you are reasonably intelligent then I really cannot see how you could fail with this book, though I can see how you can go wrong with most other lessons out there.

If you learn best by example and seeing how it is done then this will be even better. Unfortunately I am the other type of learner and have trouble with any loose ends, so I found myself going on long detours to find out the "why" of everything when many times I would have been better completing the chapter, by which stage the why is often answered, and if not you are in a better position to go looking - I hope this last bit of advice will be use to the other "But whyyy?" people out there ;)

One area where I feel Michael's overall package really would benefit from improvement is the support side. There is no user forum and people are instead encouraged to ask questions on Stack exchange. I think this is both a frustration for the user and also an opportunity lost. The author states that this is because forums are a nightmare to run, and to this I can testify, having been admin and moderator for several. But, I still think there should be some attempt made for users of the book and tutorial to talk amongst themselves and help each other. Classroom teachers would tell you that this is where the best learning comes from - peer learning.
Read more ›
Comment | 
Was this review helpful to you?
5.0 out of 5 stars A great way to get in to Ruby on Rails 3 15 Jun 2013
Format:Kindle Edition|Verified Purchase
Although this book is available for free on the internet I found it very useful having it available offline on my kindle, it gave me a chance to read through the book before trying out the tutorials.
Comment | 
Was this review helpful to you?
0 of 3 people found the following review helpful
1.0 out of 5 stars Crashes my kindle 4 Jan 2014
Format:Kindle Edition|Verified Purchase
Reasonably good impressions from what I've been able to read, but this book keeps crashing my Kindle Paperwhite, so it can't be recommended.
Comment | 
Was this review helpful to you?
Would you like to see more reviews about this item?
Were these reviews helpful?   Let us know
Search Customer Reviews
Only search this product's reviews

Customer Discussions

This product's forum
Discussion Replies Latest Post
No discussions yet

Ask questions, Share opinions, Gain insight
Start a new discussion
First post:
Prompts for sign-in

Search Customer Discussions
Search all Amazon discussions

Look for similar items by category