Ruby on Rails Tutorial (3rd Ed.) Learn Web Development with Rails Michael Hartl

The Ruby on Rails Tutorial book and screencast series teach you how to develop and deploy real, industrial-strength web applications with Ruby on Rails, the open-source web framework that powers top websites such as Twitter, Hulu, GitHub, and the Yellow Pages. The Ruby on Rails Tutorial book is available for free online and is available for purchase as an ebook (PDF, EPUB, and MOBI formats). The companion screencast series includes 12 individual lessons, one for each chapter of the Ruby on Rails Tutorial book. All purchases also include a free copy of the Solutions Manual for Exercises, with solutions to every exercise in the book.


Joining the email list for this book will allow the author to contact you to let you know about special offers and when updates for the book are available.

Pricing Options

  • $39.00
    HTML, Ebook, and Solutions Manual
    • DRM-free copies of the Ruby on Rails Tutorial 3rd Edition ebooks in EPUB, MOBI, and PDF formats
    • Over 700 pages of content
    • Fully updated for the latest version of Rails
    • Free copy of the Solutions Manual for Exercises, with solutions to every exercise in the book (HTML, EPUB, MOBI, and PDF)
  • $149.00
    HTML, Ebooks, and Screencast videos
    • The full Ruby on Rails Tutorial screencast series (3rd edition)
    • 12 screencast lessons (one for each chapter), with more than 15 hours of downloadable HD video (see the teaser trailer or view a free sample lesson)
    • DRM-free copies of the 3rd Edition Ruby on Rails Tutorial ebooks
    • Fully updated for the latest version of Rails
    • Free copy of the Solutions Manual
  • $299.00
    HTML, Ebooks, Screencast videos, All previous versions
    • The full Ruby on Rails Tutorial screencast series (3rd edition)
    • DRM-free copies of the 3rd Edition Ruby on Rails Tutorial ebooks
    • Free copy of the Solutions Manual
    • Copies of all previous versions of the Ruby on Rails Tutorial ebooks (Rails 4.0 version, 2nd edition, 1st edition, Rails 2.3 version)
    • Copies of all previous editions of the Ruby on Rails Tutorial screencasts (4.0 supplement, 2nd edition, 1st edition)
    • Over 2000 pages of content and over 40 hours of video

About the Author

Michael Hartl

Michael Hartl is the creator of the Ruby on Rails Tutorial, one of the leading introductions to web development, and is a cofounder of the Softcover self-publishing platform. His prior experience includes writing and developing RailsSpace, an extremely obsolete Rails tutorial book, and developing Insoshi, a once-popular and now-obsolete social networking platform in Ruby on Rails. In 2011, Michael received a Ruby Hero Award for his contributions to the Ruby community. He is a graduate of Harvard College, has a Ph.D. in Physics from Caltech, and is an alumnus of the Y Combinator entrepreneur program.


  • Highly Recommended!

    by Gravatar Lindsay M. on March 20, 2016 at 23:42

    Hardly a day goes by when I don't mention to someone how well the Rails Tutorial works. I am very impressed with the in-depth information that is provided, the quality of the presentation and how everything works exactly as described in the book. If you just carefully read and follow the instructions you can't go wrong.

    by Gravatar Victor Amemiya on January 20, 2016 at 12:53

    This is certainly the best tutorial i have used at all. I'm almost finishing the first time, and i gonna do more times to learn much more. I've observed that this is not a fixed tutorial, it has been updated constantly.
  • The best I have ever read about Rails

    by Gravatar Horst Boulliung on January 10, 2016 at 10:51 Verified Buyer

    That's the best Tuturial I have ever  read about Rail.
    Thank you Michael for your wonderful education.


  • Dhh
    David Heinemeier Hansson - Founder & CTO, Basecamp; Creator, Ruby on Rails

    3rd edition of @mhartl’s much celebrated The Ruby on Rails Tutorial is out in draft: — looks like a great upgrade!


  • Jimmywales
    Jimmy Wales - Founder, Wikipedia

    Q: What is Jimmy Wales’s favorite book?

    A: It changes often. At the moment, it’s Ruby on Rails Tutorial by Michael Hartl. :)


  • Dereksiverssmall
    Derek Sivers - Entrepreneur, programmer

    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… 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… Though I’ve worked my way through many Rails books, this is the one that finally made me “get” it.

  • Petercooper
    Peter Cooper - Ruby Inside

    I got review access to all of the material and can confirm that, yes, these screencasts are awesome… If you basically want to be able to look “over the shoulder” of an experienced Rails developer and see how a Rails development environment is set up and how multiple apps are built, there’s nothing that can beat this. This isn’t a set of “build a blog in 15 minutes” videos—it’s a complete course that could kick off a new career for you with Rails.

  • Alanmccann
    Alan McCann - COO,

    Michael’s original Ruby on Rails tutorial got me from someone who read Rails books to someone who actually was able to develop basic Rails apps—his teaching methodology somehow got me involved like no other book and allowed me to produce results quickly and gain confidence. The new screencast series got me to a whole other level of understanding.

    Imagine going through the tutorial but having the pro-level developer behind the tutorial giving you a running commentary with tips, tricks, and useful detours—all while contributing to your growth as a Rails developer with a test-driven approach. I’ve always known that understanding how experts think about what they do is the key to learning and mastering something. In this screencast format, Michael was able to go beyond the limitations of the written word and both show and explain his approach to Rails development in an engaging manner.

    If you are early in your days with Rails, just buy this series.

  • Mikeriley
    Mike Riley - Dr. Dobbs

    Written and presented by theoretical physicist Michael Hartl, Ruby on Rails Tutorial offers a superb introduction to the world of a Rails developer. The Rails Tutorial PDF and complete training video set is an absolutely top-notch package for learning the Rails framework…”

    I can’t emphasize enough how much I enjoyed the Ruby on Rails Tutorial book+video bundle. will no doubt educate legions of beginning and intermediate Rails developers, and will be one of those resources that students who complete the book and video course will refer to often. Because Michael offers the full contents of the book available for free on the website, both the book and videos are sure to become some of the most frequently cited educational references among Rails students. This package will no doubt play a major catalytic role in many Rails technical training and development careers.

    If you have any interest in Rails, you owe it to yourself and your educational investment to obtain this superb package. It will likely be one of the best and most educationally rewarding purchases you will make this year.

  • Mikelong
    Mike Long - Software Engineer

    Just finished the outstanding @railstutorial. Probably the best software tutorial I’ve experienced since K&R [The C Programming Language by Kernighan & Ritchie].


  • Danielauger
    Daniel Auger - Systems Architect for Minnesota Secretary of State

    For what it’s worth: I had fantastic customer service from @railstutorial today. Buy with confidence my friends.



  • What are Ruby and Ruby on Rails?

    Ruby is a general-purpose programming language, and Ruby on Rails (or “Rails” for short) is a framework for making web applications written in Ruby.

  • Why should I learn Ruby on Rails?

    Ruby on Rails is one of the most powerful and popular web development frameworks available, used by sites like Twitter, GitHub, Airbnb, and Hulu. Learning Rails will give you the tools you need to make your own web applications, while also putting you in a good position to work for a web development consultancy, startup, or other tech company.

  • What is the Ruby on Rails Tutorial?

    The Ruby on Rails Tutorial: Learn Web Development with Rails is the 3rd edition of a book and a screencast series designed to teach web development with the Ruby on Rails web framework.

  • Who should study the Ruby on Rails Tutorial?

    The Ruby on Rails Tutorial is designed for anyone who wants to learn how to develop web applications. This audience includes entrepreneurs, small business owners, aspiring developers, and experienced developers with experience in other languages or frameworks.

  • Is the Ruby on Rails Tutorial appropriate for complete beginners?

    The Ruby on Rails Tutorial is likely to be very challenging if you have no programming experience at all, but many beginners have reported that they were able to get through it with enough determination (in some cases, by going through the entire tutorial twice!).

  • What are the prerequisites for the Ruby on Rails Tutorial?

    There are no formal prerequisites, but I recommend familiarity with HTML and CSS, and some previous programming experience is helpful.

  • Does the Rails Tutorial use the latest version of Rails?

    Yes, The Ruby on Rails Tutorial: Learn Web Development with Rails is fully up-to-date with the latest version of Rails.

  • What does the Ruby on Rails Tutorial cover?

    Here are the chapter titles for the 3rd edition of the Ruby on Rails Tutorial:

    1. From zero to deploy
    2. A toy app
    3. Mostly static pages
    4. Rails-flavored ruby
    5. Filling in the layout
    6. Modeling users
    7. Sign up
    8. Log in, log out
    9. Updating, showing, and deleting users
    10. Account activation and password resets
    11. User microposts
    12. Following users

    See the full table of contents for more details.

  • The screencast series includes all the content from the book, while adding dozens of tips and tricks to help you go beyond the text, including debugging hints, testing techniques, and more detailed explanations of some of the finer points of web development. And though the screencasts are carefully edited, I’ve left in some of the problems I encountered along the way, so that you can learn how to recover from the inevitable application errors—and see that even experts sometimes make mistakes.

    The content of the screencasts is based on the 3rd edition of the Rails Tutorial, which uses the latest version of Rails.

  • How do I view the screencasts?

    Once you make your purchase, the screencasts are available as downloadable HD video files (MP4 format) and can be viewed on your computer or tablet device.

  • Where are my downloads located?

    After logging in, navigate to Your Books, mouse over the relevant book, and click “Downloads”. Scroll down to see the video links (if applicable).

  • What about single-page web frameworks like Angular, Backbone, and Ember?

    While some applications benefit from a JavaScript-heavy front-end, most applications are still more naturally structured as a collection of documents, and Rails is a better fit for this more common case. In addition, JavaScript frameworks like Angular and Ember still need a back-end to process requests, talk to the database, etc.—a job at which Rails excels. (Indeed, two of the core Ember developers are also current and former members of the Rails core team.)

  • Do I have to buy a subscription to the Cloud9 IDE to complete the Rails Tutorial?

    No, Cloud9 has a free tier that is perfect for doing the tutorial without committing to a monthly fee.

  • Where can I find the latest updates about the Ruby on Rails Tutorial?

    The best thing to do is to join the email list. Announcements are also typically available online via the Rails Tutorial News feed.

  • If I buy the Rails Tutorial, will I get updates for free?

    Minor updates are free, while new editions are paid upgrades with substantial upgrade discounts for current customers.

  • Is there a print edition of the Rails Tutorial?

    Yes, you can find the Ruby on Rails Tutorial print edtion at Amazon. The content of the print edition is slighly older than the online version, but is functionally identical. (I recommend referring to the online version to resolve any discrepancies you run into.)

  • Are the previous versions of the Rails Tutorial still available online?

    Yes, previous versions are available at the following links:

  • Should I report a tiny typo I found?

    Typo reports, no matter how small, are gratefully received. Please send reports via email to the address below.

  • How do I contact the author?

    You can reach me by email at admin at railstutorial dot org.

  • Do you offer a money-back guarantee?

    Yes, every Rails Tutorial purchase comes with a 60-day money-back guarantee.


The Ruby on Rails Tutorial helps you learn Rails by example through the development of a substantial sample application, including a site layout, a user data model, a full registration and authentication system, user-micropost associations, social “following”, and a feed of status updates. The Ruby on Rails Tutorial also teaches good software development practices, including version control with Git and GitHub, test-driven development (TDD) and integration testing, and instant deployment with Heroku. Though of necessity the book and screencasts focus on a specific sample application, the emphasis throughout the Rails Tutorial is on general principles, so you will have a solid foundation no matter what kind of web application you want to build.

New in the current edition

  • Fully updated for the latest version of Rails
  • Use of a free integrated development environment in the cloud for maximum cross-platform compatibility
  • 100% default stack use of the Rails framework for greatest ease of use
  • Lightweight, intuitive approach to testing
  • Completely rewritten chapter on login and authentication
  • All-new section on image upload
  • All-new chapter on account activation and password resets, including sending email with Rails
  • Strong focus on universal principles of web development


Translations of the Ruby on Rails Tutorial are available in several languages:

Third edition

Earlier versions


Web development is a tricky business, and despite the best efforts of the tutorial it’s likely that you’ll run into trouble at some point. If you do, I suggest comparing your code to the reference implementation of the sample app to track down any discrepancies. You can also post your question at Stack Overflow using the tag (Click here to see questions labeled with that tag.) The creators of the Learn_Rails subreddit have graciously offered to answer questions as well.

Errors in the tutorial can be reported by email, but please triple-check by comparing with the reference implementation of the sample app first.

Debugging tips

While it’s impossible to anticipate every potential problem, here are some debugging tips that might help:

  • Have you compared your code to the reference implementation of the sample app?
  • Are you using the exact gem versions (including Rails) used in the tutorial?
  • Did you restart the web server?
  • Did you kill all relevant Spring processes (as described in the book)?
  • Did you copy-and-paste from the book’s code? (Experience shows that typing in code, while a better learning technique in general, is error-prone, so when in doubt be sure to copy all code exactly.)
  • Did you re-run bundle install?
  • Did you try running bundle update?
  • Did you try Googling the error message?

If your problem is of a general nature, such as having issues installing Rails or configuring your system, I suggest posting to Stack Overflow (again using the tag, sending a message to the Ruby on Rails Talk mailing list, or posting to the Learn_Rails subreddit. This will allow other people running into your issue (and not just those following the Rails Tutorial) to benefit from the discussion. You can also try asking your question on the Rails IRC channel (#rubyonrails) to get live assistance from other Rails programmers. For issues deploying to Heroku, please contact Heroku technical support.

When asking your question on any mailing list or forum, be sure to include as much relevant information as possible. To maximize your chances of a helpful reply, I especially recommend the article How To Ask Questions The Smart Way by Eric Raymond.


I can be reached by email at admin at railstutorial dot org.


You will be emailed a link to download the book files.