Learn Ruby on Rails

Get the book that is called "The best Rails book for beginners."

Advance Edition Available Now

Subscribe on the Rails Tutorials site

  • Free download offer expired Nov 30th at 5pm Pacific Time
  • Get the full-length Learn Ruby on Rails book
  • Get the updated book as new versions are released
  • Includes additional tutorials for ongoing learning
  • Only available to subscribers on the Rails Tutorials site

Want more information? email Daniel Kehoe

No matter who you are, this book will put rocket boosters on your first steps into web development with Rails.

In one intense weekend of reading and coding, you will:

Learn the basics of the Ruby language

Build a real Rails application step-by-step

Adopt a professional workflow using Git

Deploy your application to the web using Heroku

About the Author:

Daniel Kehoe is a former writer and editor at PC WORLD and NeXTWORLD magazines, who is known for a lively and entertaining writing style. Kehoe has built web applications since the web's beginnings in 1991 and has worked with Rails since 2006 as a consultant and technical cofounder for startups. He is well-known in the Rails community for the popular RailsApps project, which offers tutorials and example applications for professional Rails developers.
Probably the best tutorial available for people new to Rails.
—Mark Everhart, 19 Sept 2013

Table of Contents:

Professional practices

Inside Rails

Gaining skill

Building your real-world application

Final steps

Overcoming obstacles

What People Are Saying

Learn Ruby on Rails by Daniel Kehoe is a good tutorial. In fact, it's probably the best tutorial available for people new to Rails. I think it's a solid tutorial that is a good starting point for anyone who wants to learn Rails. If nothing else it has given me a good foundation upon which to build via more complex tutorials and books.

– Mark Everhart 9/19/2013

It’s very well written. Other books present way too many new concepts at a time. For example Hartl’s book is very well made, but too complex for a beginner, so it’s very easy to get lost. Your book instead is an ideal starting point for Rails beginners, and avoids scaffolding that produces much messy and unused code.

– Giacomo Lepori 9/22/2013

Great work! I really like the way you build the book with all the additional links and info. We are three beginner railsgirls and have been staring at code for hours to find out where some information came from—but you can't find out unless you know about Rails theory and magic. It gets better after a while thanks to the nice tutorials you do.

– Daniela Zimmermann 9/19/2013

I was impressed. The tutorials covered things that were relevant, and practical. I often find tutorials lead you to building things that aren't that useful, so it was refreshing to get dumped into something that I could immediately see the practicalities of using, and how I could expand on the knowledge gained from the exercise.

– Joe Sutton 9/18/2013

The book is great to follow.

– Michelle Merriweather 9/16/2013

Take if from one who is just starting out and has been over innumerable materials on Ruby and Rails, I've not read anything as easy going as your book. It has just the right amount of everything to entice any Rails newbie to look beyond those initial stumbling blocks and unto the glory that lies ahead. In my honest opinion, it is the best Rails beginner tutorial book out there that I've come across.

– Paul Dariye 9/14/2013

The book kept me very interested and focused. I feel the author is sitting next to me and teaching me each and every concept. I like the writing. Though English is not my primary language, I am easily following it.

– Syed Murtza 9/12/2013

Most tutorials jump right into Ruby/Rails and offer the reader no context regarding software development as a whole. Your intro chapters discussing the Ruby ecosystem and the Rails framework were a great help in getting a "big picture" overview. I also thought the chapters about setting up the proper dev environment (RVM, Sublime, GitHub) were really good. I really appreciated the tutorial and found it very helpful.

– Dave Mox 9/6/2013

Overall, it is an excellent beginner document. I found the text easily understandable, although I am not a programmer (other than an amateur hacker).

– Norman A. Cohen, M.D. 7/14/2013

I liked it very much and I understood everything (I new to Rails and developing in general). I also liked that it was possible for me to skip one or two paragraphs explaining something I already new without having the feeling of being lost. The book is well written and understandable.

– Julia Mokus 7/10/2013

Just finished reading the book. I learned a lot (discovered new gems, debugging, deploy). I would definitely recommend it to a friend. I found it very useful. I learned things I didn't know about (setting proper environment when entering the project folder). Also: good introduction to Git (time machine example), and MVC explanation (clear and detailed). But the book is challenging, it's not "walk in a park" easy, especially when it comes to understanding Ruby code. It could be a little overwhelming for beginners to learn all this.

– Alexey Ershov 8/29/2013

I just downloaded your book a couple of days ago. I'm totally new to Rails, and programming. I've done the Ruby course on Codecademy, but apart from that I know very little. I love that you begin by talking through the bigger picture stuff of app development, not just straight into how to use Rails. I think this is really important as it grounds the book in the real world. One of the big things I found doing the Codecamedy courses was that I didn't remember what I learned, partly because they can be kind of abstract. They guide you through the steps, "Here's an array, here's a hash, etc etc" but this is often not linked back to "This is how you might use those things in the real world." I've already learnt several things I had no idea about from your book—pair programming, Kanban, user stories. I already feel like, at the end of this book, I might actually have a go at developing my first app.

– Richard Vankoningsveld 8/20/2013

Really appreciate the book and huge thanks for your hard work. This book is very useful for me. I upgraded my knowledge of Rails. Everything that you write is great!

– Hendri Firmana 8/21/2013

I am currently living in Bangladesh. I read your articles and downloaded your book. It's really useful to me as a beginner with Ruby on Rails.

– Sukanta Ghosh 8/21/2013

I attended DevBootCamp earlier this year and this is the kind of reference book they need both for prep and throughout the course! It is really well done. I am just finishing up EdX 169.2 and I have a new appreciation for how you introduce the user stories early on in the development of the sample app in the book.

– Carolyn Porter 8/23/2013

As a new user of Rails—indeed a new webmaster, knowing HTML, CSS and a tiny bit of JS—I can say your book was very useful and for the most part very easy to follow. I thought your graphic on the MVC flow was kind of lame (especially the drawing of the monitor!). I got a little lost in the weeds a few times, but after taking a break and reading again things were clear. All in all I'd say you did a great job and told quite a few nuggets of information that I'd not seen before. I'm using the book as reference while I assemble my church website.

– Tom Connolly 8/23/2013

First off, you're awesome, and thank you very much for this book. I have learned so much from it already. I'm still a beginner so coding can be pretty discouraging. I learned some stuff about Ruby on Codecademy.com but I got lazy and stopped for many months. So I went on Reddit and posted about it and some guy replied to me suggesting your book, so I was thinking okay, I'll give it a try. (Every time I try to find beginner stuff they always assume you know all these terms, and often they assume you have previous programming knowledge with other languages.) So I started reading your book and I found it was very easy to follow along as a beginner. I love how you go into detail with all the instructions. For me it's fantastic. It has made it enjoyable for me and, as a person who hates reading, it makes it less tedious because I don't have to keep re-reading something over and over. I am going to try and read this book again after I'm finished because I really want all this information to stick with me.

– Brandon Schabel 8/28/2013

I found it very well-written and very encouraging! I am currently learning to code in the setting of Code First: Girls in the UK and am working in a start up doing product management. Hence I enjoyed your approach of explaining agile development and test-driven development a lot. I very much appreciate the book for deepening my knowledge about Rails.

– Jutta Frieden 8/27/2013

The book has definitely helped me to bridge a gap. I feel more aware, and comfortable, with the Rails 'magic'.

– Jonathan Miller 8/16/2013

I like it, especially the clear and short explanations. You gave good references to many helpful tools. The book gives a broad understanding of what Ruby + Rails do.

– Alexey Dotokin 7/14/2013

You're good at explaining things in a clear and digestible way. I am in the first iteration of General Assembly's Los Angeles Web Development Immersive. We're learning a lot of things rapidly so it's really helpful to read something that helps glue all the pieces together.

– Vanessa Vengco 8/13/2013

Contains very useful information not only for developers but also aspiring entrepreneurs. The information about various online resources is exemplary.

– Sakib Ash 8/16/2013

I'm reading your ebook and it is really amazing! I'm learning Rails and it is a pleasure!

– Raphael Silva 8/14/2013

I tried several different resources for a beginner—ranging from the more common online tutorials to books—and must say your work is among the best I've discovered.

– Thom Mikail S. Berre 8/14/2013

I am going through the book with ease so my first impression is that is understandable. If I had to rate the book I would say so far a 9.5/10, and that .5 is because of the font. I would have used Verdana but this is a preference from my eyes to read any screen. I'm located in Argentina and all my learning will get invested on a project for HR management.

– Alejandro Angeriz 8/8/2013

I am a student at General Assembly and your book has been invaluable to me thus far. Thank you so much for writing it and giving us newbies an excellent tool.

– Erin Nedza 8/9/2013

The book is a perfect beginners friendly book. Easy to read and absorb, a fantastic digest that brings all the scattered pieces together. It's not a read-once-and-shelf book, rather you'll want to read it again after learning some Rails to get some great ah-hah moments. More importantly you will pick up several vital Linux commands. The most exciting parts are the insider tips. I'm glad I'm reading them before I need them.

– Richard Afolabi 8/13/2013

How to Order