Newly updated for Rails 5, 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 14 individual lessons, one for each chapter of the Ruby on Rails Tutorial book.
Learning to program is only one piece of the puzzle. Learn Enough to Be Dangerous teaches you coding as well as a much more powerful skill: technical sophistication. The Developer Fundamentals guides cover three essential tools for the aspiring computer magician: the Unix command line, text editors, and version control with Git. After this, you'll be in a position to collaborate with millions of developers around the world, even if you're not (yet) a developer yourself.
Membership includes access to the Ruby on Rails Tutorial, all Learn Enough tutorials, streaming video screencasts, and immediate access to new tutorials when launched. Also features integrated progress tracking, community exercise sharing, and official exercise answers.
HTML, Ebooks, and Screencast videos
HTML & Ebook
HTML, Ebooks, and Screencasts
Michael Hartl is the creator of the Ruby on Rails Tutorial, one of the leading introductions to web development, and is a cofounder of Learn Enough to Be Dangerous 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.
by @roberthopman on December 10, 2017 at 20:50
Well, just wanted to say thank you. Best tutorial as far as I know on RoR. See you on twitter.
by Mauricio Guzmán on November 28, 2017 at 19:48
Amazing book, it explains the concepts clearly and illustrates them with powerful examples, I have taken rails tutorials before, but this book gave me the basis to fully understand and be able to code in rails effortlessly.
by James M on February 26, 2017 at 22:17
I love it. I now have rails fundamentals down.
[New] edition of @mhartl’s much celebrated The Ruby on Rails Tutorial is out in draft: http://news.railstutorial.org/rails_tutorial_3rd_edition/ — looks like a great upgrade!
Q: What is Jimmy Wales’s favorite book?
A: It changes often. At the moment, it’s Ruby on Rails Tutorial by Michael Hartl. :)
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.
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.
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.
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. railstutorial.org 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.
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.
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.
The Ruby on Rails Tutorial: Learn Web Development with Rails is the 4th edition of a book and a screencast series designed to teach web development with the Ruby on Rails web framework.
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.
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!).
There are no formal prerequisites, but I recommend familiarity with HTML and CSS, and some previous programming experience is helpful.
Yes, The Ruby on Rails Tutorial: Learn Web Development with Rails is fully up-to-date with the latest version of Rails.
Here are the chapter titles for the 4th edition of the Ruby on Rails Tutorial:
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.
That’s the sample book available even to non-logged-in users. If you log into your account, you’ll be able to download the full text.
No, Cloud9 has a free tier that is perfect for doing the tutorial without committing to a monthly fee.
Minor updates are free, while new editions are paid upgrades with substantial upgrade discounts for current customers.
The print edition’s Amazon page is here.
Yes. Apart from minor corrections, the print edition has the same content as the online version and the ebook edition.
Yes, previous versions are available at the following links:
Typo reports, no matter how small, are gratefully received. My only request is that you check the online version first to make sure the typo hasn’t already been corrected. Please send reports via email to the address below.
You can reach me by email at
admin at railstutorial dot org.
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.
Translations of the Ruby on Rails Tutorial are available in several languages:
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
see questions labeled with that tag.) The creators of the
Learn_Rails subreddit have
graciously offered to answer questions as well.
While it’s impossible to anticipate every potential problem, here are some debugging tips that might help:
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
railstutorial.org), 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
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.
Michael Hartl is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to Amazon.com.