Why You Should Learn Ruby on Rails
Welcome to the Learning Rails Online Course
If you’ve read this far, you probably already have an interest in building web applications with Ruby on Rails. But just in case you’re unsure if Rails is worth learning, in this lesson we explore the reasons for the success of Ruby on Rails and the benefits that can result from using it.
The heart of the lesson is the audio; these notes are supplementary. So please listen to the audio, or read the transcript, before making use of these notes.
To listen to the lesson, click the Play button on the left. You can also right-click on the download link to save the mp3 file, or you can subscribe in iTunes (just search for Learning Rails).
To read a transcript of the lesson, click the Transcript link on the left.
Web resources
Keep in mind the distinction between Ruby and Ruby on Rails:
- Ruby is a programming language
- Ruby on Rails (often called simply “Rails”) is a framework for building web applications with Ruby
The central web resources for Ruby and Rails, respectively, are:
If you want to do some more preparation for your Ruby on Rails education, we highly recommend that you begin learning Ruby, the programming language, without regard to Rails (at first). You don’t need an extensive knowledge of Ruby, but you need to learn the basics. We’ll talk about Ruby a little more in later lessons, but you can get started now learning it on your own.
If you have experience with another programming language, much of Ruby will seem very natural. If you don’t have any experience with object-oriented programming, you may want to read up on Ruby objects — in Ruby, everything is an object, and you’ll work with them constantly.
Ruby uses one unusual construct, the code block, which is unfamiliar to most programmers and merits some study. Code blocks are used extensively in Rails.
Ruby-lang.org has a good introductory tutorial and a longer introduction to Ruby.
Ruby Essentials is a short online ebook on ruby.
And for those of you who are more graphically inclined, check out Why’s Poignant Guide to Ruby, Chapter 3, it even has foxes!
You can begin experimenting with Ruby right in your browser, without having to install anything. Just browse to tryruby.hobix.com.
Introductory books
You need to learn about both Ruby and Rails, and you’ll want separate books for each of them.
For beginning Ruby, these are both good introductory books:
There are several other valuable references and advanced guides for Ruby, which you’ll want to pick up if you get serious about your Ruby programming; see our Ruby bookstore for an extensive list.
For learning Ruby on Rails, the current selection of books is a little problematic. Two years ago, there were only a few books; now there are dozens, which makes it more confusing to pick one. And alas, most of them are written for Rails 1.2.6, and the ones that are the most up-to-date are not well suited for beginners.
Although it is not the most accessible book for a novice programmer, and is written for Rails 1.2.x, Agile Web Development with Rails remains the classic Rails book. But if you’re using Rails 2, which we recommend you do, parts of this book will be confusing due to changes in the framework.
The most up-to-date and in-depth book on Ruby on Rails is The Rails Way. It isn’t written as an introductory book, so while we highly recommend it as a reference, you’ll probably want to start with another book to get your bearings first. The Agile book mentioned above is a good place to start, especially if you have a programming background. If you’re looking for a gentler introduction, some of the available books include:
- Rails Solutions: Ruby on Rails Made Easy
- Build Your Own Ruby on Rails Web Applications
- Beginning Rails
Other books provide a lot of example code that provide useful guides for how to implement various features. Books of this type include:
- Practical Rails Social Networking Sites
- RailsSpace: Building a Social Networking Website with Ruby on Rails
- Beginning Ruby on Rails E-Commerce
- Rails Cookbook
- Rails Recipes
See our complete list of Ruby and Ruby on Rails Books for more.
Comments on This Lesson
From: Fidélio Artur Date: 10/24/08 07:19 PM
Subject: Rails
I understood on the 1st learning ruby free-online course that is power full fo web app. devlpmt. Funny!I liked.So is ti good enough to creat CMS like joomla?
From: Fidélio Artur Date: 10/24/08 06:18 PM
Subject: Rails
I understood on the 1st learning ruby free-online courso that is power full fo web app. devlpmt. Is ti good enough to creat CMS like joomla?
From: himadri Date: 10/22/08 07:19 PM
Subject: a big thanks
thanks for narrating ..thanks for creating this podcast ..thanks for the generosity and thanks for everything …
From: wajahat Date: 10/19/08 12:12 PM
Subject: how can i donate you other than mentioned option
Hi Unfortunately I don’t have such facility in our part of land, please tell me how can i donate at least some to you.. money booker like WU can be a option. (Its 1:90 ratio of my currency and to USD but i would like to contribute) Thanks Wajahat
From: Cocolombo Date: 10/04/08 03:15 PM
Subject: Great
Great introduction to the language and the framework. Can’t wait for lesson 2.
From: anil sai Date: 10/03/08 06:18 PM
Subject: thank u sir
thanx for giving dis course free and also the tutorial abt dis one s so interstin n i wanna knw more further abt dis course…its very gr8….i really thank you sir…
From: Sathish Date: 10/01/08 04:16 PM
Subject: thank u sir
it is really great tutorial. I ve finished the 1st lesson, Waiting for the other chapters. Thanks a lot
From: rinaldo calixto Date: 09/23/08 04:16 PM
Subject: thanks a lot!
i have really apreciated the first lesson .you are a11
From: cherrian chin harada Date: 09/19/08 03:03 AM
Subject: Thank you very much!
Thank you very much! I am looking forward to this course,as well as to receive your e-mail notifications every three days. Hope this will be a successful experience with RoR.
From: Michael Slater Date: 09/18/08 04:16 PM
Subject: No worries...
Cherrian,
Don’t worry about making a donation. The course is free, and we want it to be that way. Donations are entirely optional, and we appreciate your appreciation!
From: cherrian chin harada Date: 09/18/08 08:08 AM
Subject: Thanks for the introduction.
Thank you for the introduction to ROR. I would like to make a donation now but I can’t… Maybe after I learn more about RoR and can really use it to it’s fullest potential I will able to donate. Please forgive me, I will continue with your course.Yes! each time I will feel guilty because I can’t afford to donate now. Anyway, still want you to know I appreciate your good deed. Thanks!
From: Charlz Date: 08/07/08 08:08 AM
Subject: Ruby on Rails Lesson 1
Wow it’s great and worth to learn. :)
From: ChanHan Hy Date: 07/31/08 06:06 AM
Subject: Ruby on Rails Lesson1
It’s great! This is a lesson1 of ROR. I’ve done. I’ve listened and read it already.
Thanks,
From: Raul Souza Lima Date: 07/31/08 03:03 AM
Subject: Congratulations!
Hi! My name’s Raul and I’m writing from Brazil. I don’t know if you know something about Brazilian community, but I would like to thank them for their excellent work. Cheers. Raul Souza Lima
From: Thura Date: 07/20/08 09:21 PM
Subject: Credit to...
Thanks, good catch to know about ROR in a short period.
From: Dan Date: 07/17/08 11:23 PM
Subject: so...where's the catch?
Wow I guess it really is free. Thanks for the help.
From: Greg Zentkovich Date: 07/12/08 01:01 AM
Subject: Re: Source Code
This is an excellent lesson… very well done. I have learned so much just from the first lesson (video version). Just wished the source code was included with first lesson. Great job though… I’ll spread the word.
From: Dave Date: 07/10/08 01:13 PM
Subject: Great course and for free!
Been watching and listening via my apple tv and I can really say that to a beginner to both programming and rails, this course is exactly what I needed.
No doubt I’ll keep revisiting them and the notes.
Cheers,
Dave
From: logudotcom Date: 07/06/08 11:23 PM
Subject: good tutorials
it is really good
From: Michael Slater Date: 07/06/08 09:09 AM
Subject: iTunes
To download the podcast in iTunes, just go to the iTunes store and search for Learning Rails. Click the Subscribe button to subscribe.
From: Insertname Date: 07/06/08 09:09 AM
Subject:
Hw do I download this as an actual podcat i.e. subscribe using iTunes :S
I’d even be happy just to download it as an mp3. I’m using Safari on Mac OS X, if that’s any help
From: Gustavo Date: 07/04/08 09:09 AM
Subject: Thanks
la verdad quiero aprender el curso aunque me de un poquito de dificultad el ingles pero igual lo estoy siguiendo
From: Jorge Pompiani Date: 06/29/08 10:10 AM
Subject: Learning Rails
Dear Michael,
I would like to thank you guys for making this rich material available for us to learn Ruby on Rails. I am a student of Systems Analysis and Development here in Brazil and when i first heard about RoR was on linuxmall website. I was looking for some programming books and one of them wa about RoR. Since then i try to follow as much as possible news, blogs, forums… until i found your video on youtube during a conference, if i am not wrong, in that video you talked about buildingwebapps.com and right away i signed up myself on learning rails podcasts. i’d say i am a beginner on programming, i have a small experience on Java and this semestre in school we will start study PHP and some stuff regarding CSS, Javascript… Well, i would like to say that your material is being very useful for me since i am learning RoR on my own, i have some doubt, some issues but i guess this will be clearing up with time and as i am passing by the lessons. RoR in Brazil is not as popular as PHP and Java, but i am sure in a close future, RoR will be as much or maybe much more popular than those two ones due to the increasing and fast up dates of RoR.
I am on lesson Three in your course and looking forward to see the next ones. I am doing a bit slow because i study the lesssons, make some note, and also i am writing a material / schema in portuguese for my own records.
Once again, Thank you and keep doing this great job.
Take care, Jorge Pompiani
From: JK Date: 06/22/08 08:08 AM
Subject: Excellent Introduction of ROR
Great Job!
From: Gouthami Date: 06/15/08 10:10 AM
Subject: Very Nice Introduction
Hello, this is great job. Thank you so much !
From: Samuel Luján Date: 06/12/08 01:13 PM
Subject: Nice Introduction
Hi This is a great job and very useful for me because I’m learning on my own. Thank you so much!
From: Samuel Luján Date: 06/12/08 01:13 PM
Subject: Nice Introduction
Hi This is a great job and very useful for me because I’m learning on my own. Thank you so much!
From: Steve Date: 06/03/08 05:17 PM
Subject: 1st Listen
I just listened to your 1st podcast. Great! Clear and concise, seemed like great recording facilities. Good voice too. I’m listening to these tutorials cuz getting RoR onto my iMac, requires, for a starter, a 1GB download of Xcode on a slow line. Was going to just buy a Panther upgrade (from Tiger) but the comments on that have not been great. I’ll process that problem in the background. Meanwhile, I’ll listen to you and read Ruby for Dummies.
From: Kristof Polleunis Date: 06/02/08 11:23 PM
Subject: Thanks guys
I have a few rails books around but still couldn’t get my head around as it’s so different from php or coldfusion.
These lessons allow me to learn one step at a time focusing on what rails is before diving into the code.
Really excellent stuff ! You guys should also consider video tutorials.
From: jd Date: 06/01/08 02:14 PM
Subject:
Glad you have the transcript since i dont have the patience to listen.
From: Paul Date: 05/27/08 08:08 AM
Subject: Issue with video #2
I was following along on my mac. Issue the command “script/generate scaffold page name:string title:string body:text” and get the following error. “wrong constant name Name:stringController” Was there a logical step missing or is it me. :)
From: Truong Thanh Hai Date: 05/20/08 09:21 PM
Subject: Thank you Michael Slater and Christopher Haupt
I’m beginner in RoR. Your lesson is useful for me. I hope I will be better with your help. Again, thank you very much
From: Truong Thanh Hai Date: 05/20/08 09:21 PM
Subject: Thank you Michael Slater and Christopher Haupt
I’m beginner in RoR. Your lesson is useful for me. I hope I will be better with your help. Again, thank you very much
From: Saloni Date: 05/17/08 09:21 PM
Subject: Learning RoR
Thank you for your effort in making it very easy for a newbie to start with core concepts behind ruby on rails.You people rock,,keep it up !!
From: Fabio Nascimento Date: 05/14/08 04:16 PM
Subject: Thanks Michael
I`m beginner in RoR, but i hope learning more, much more.
Again, thank`s very much.
Fabio Nascimento
From: Michael Slater Date: 05/10/08 12:12 PM
Subject: Video streaming
zohaib, I believe you would use Rails to manage pointers to the video files and present thumbnails and descriptions and comments and so forth, but you’d want to use a streaming server independent of Rails for the actual video streaming.
From: zohaib Date: 05/06/08 01:01 AM
Subject: Video Streaming in ruby on rails
hello Actually i want to learn how we can implement video streaming in ruby on rails.
From: Michael Slater Date: 04/29/08 01:13 PM
Subject: Learning PHP vs. Rails
Joan, it depends on what kind of sites you want to build and how much of a learning investment you want to make. With PHP, you can learn just a little bit and immediately begin gradually adding dynamic capabilities to otherwise static sites. With Rails, you’re learning both a language and a framework, and the amount of learning required before you can do anything is much greater. But when you’re there, you have a more powerful tool at your disposal. If the sites you’re going to build don’t need to work with any complex data, learning Rails may not be worthwhile.
From: Joan G. Date: 04/29/08 01:13 PM
Subject: Learning Ruby on Rails
I’m new to the programming world. I can create simple, accessible websites but I wanted to make that step to database driven sites. Which language would you recommend learning first – Ruby on Rails or PHP? I’m willing to put in the time.
From: Adnan Rashid Date: 04/29/08 05:05 AM
Subject: Video Content
Kudos for the great job. Just started with the first tutorial, and learned loads.
From: Phil Leeson Date: 04/26/08 03:15 PM
Subject: Learning Rails
I’ve got programming experience but I’m new to Ruby and Rails and I’m learning on my own. I bought the books a while ago but I needed something to get me started. This lesson has certainly done that! Many thanks… and I’m looking forward to the next lesson!
From: Naushad Pasha Date: 04/21/08 05:05 AM
Subject: Ruby on Rails
Its very informative and easy to understand rials on this website, As i am new to ruby on rails i am reading ruby and i understand the basic programming in ruby but unable to learn rails, i think finally i have got a good site to run rails thanks……
From: Dan F. Date: 04/20/08 10:22 PM
Subject: Sounds good so far
If the rest of the lessons are as clear and concise as this intro, learning Rails will be a pleasant experience.
Thanks!
—df
From: Nitilaksha Date: 04/20/08 10:22 PM
Subject: Excellent !!!!!
I Love it…. Thank you Michael
From: Michael Carlyon Date: 04/20/08 08:08 AM
Subject: Excellent Introduction!
You have masterfully succeeded in providing a simple and interesting introduction to Ruby and Rails. I’m looking forward to the next lesson. Thank you!
From: Marcos Ricardo Date: 04/15/08 07:19 PM
Subject: Print stylesheet is now fixed
Hi Michael,
Wow you are fast on the trigger… Cool.
I haven’t try printing on the first place, I have no idea of this print stylesheet.
It works fine, just 6 pages of text.
A very clever solution.
Thanks.
From: Michael Slater Date: 04/15/08 03:15 PM
Subject: Print stylesheet is now fixed
Marcos, thanks for pointing this out. You don’t need a print button—we have a print stylesheet, so any reasonable browser should print the page well. It did need some updating, however, which I’ve now done, so give it a try and please report back if it doesn’t look good to you.
From: Marcos Ricardo Date: 04/15/08 12:12 PM
Subject: Print button on Transcript page
Hi,
Would be nice if we have a print button, to show a more “printable” version of the Transcript page.
Regards.
From: Michael Slater Date: 04/09/08 08:20 PM
Subject: Sample App is provided for the screencast lessons
Starting in lesson 9, we are building a sample application, and there’s a link to download the code in the notes for the lesson.
From: Neeraj Kashiva Date: 04/09/08 10:10 AM
Subject: Suggestion
This looks very exciting!!…it is good idea to have only audio and the transcript in text as video takes too long to download. However, it will be good to have a presentation (.ppt or .swf) for every lesson with some diagrams/illustrations to support the transcript. Also, it would be great if we have a sample application that can be setup & built upon with each lesson, as the course progresses.
From: Wajahat Date: 04/08/08 11:11 AM
Subject: suggestion
The work is remarkable.. i have one suggestion though: when i registered for this course on the same day i got my first lesson.. shouldn’t there be a little break to get mentally prepared. Regards Wajahat
From: Ljuba Date: 04/05/08 03:15 PM
Subject: Thank You
Amazing work gentlemen. Thank you so much!
From: David Roberts Date: 04/04/08 08:08 AM
Subject: Lessons need video
These lessons need video, otherwise they’re useful only to auditory learners which represent only about 20% of the population.


From: Prosperino Mbalame Date: 01/03/09 07:19 PM
Subject: Very good and interested lesson!
I’d like to take you about how the first 2 lessons I received were done. Completely clear…