Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

Overview

The update to the best-selling Rails tutorial includes: fully updated for Rails 3.2 and Ruby 1.9; all-new design using Twitter's Bootstrap; coverage of the new asset pipeline, including Sprockets & Sass; behavior-driven development (BDD) with Capybara & Rspec; better automated testing with Guard & Spork; roll your own authentication with has_secure_password; and an introduction to Gherkin & Cucumber. These focused video lessons help you learn crucial new skills fast– and put them to work immediately! Watch top Rails developer Michael Hartl guide you through building a complete application using today's best practices for MVC and REST design, layout, Ruby coding, security, testing, deployment, and more.

About the Author:
Top Rails expert and author Michael Hartl walks you through the entire Rails development process: installing and setting up Rails, designing Rails applications with MVC and REST, building dynamic pages, coding effectively in Ruby, implementing registration and authentication, adding social features, even testing and deployment.

Subscriber Reviews

Average Rating: 4.444444444444445 out of 5 rating Based on 9 Ratings

"Hacked up videos with Safari On The Go app on iPad" - by Craig on 25-JAN-2013
Reviewer Rating: 1 star rating2 star rating3 star rating4 star rating5 star rating
On iPad with the Safari on-the-go app, the video chapters are incomplete.  Totally worthless. But playing it through the Safari website on Safari browser, it seems to work fine.  Haven't gotten far enough to give a realistic rating of the content, but will revise later.
Report as Inappropriate

"Awesome video tutorial for Ruby on Rails" - by Rawhide on 10-JAN-2013
Reviewer Rating: 1 star rating2 star rating3 star rating4 star rating5 star rating
This is a tremendously good tutorial for learning Ruby on Rails. You will learn the fundamentals of how Rails works and how to build a non-trivial Rails application from scratch.

Michael explains things very well. It is unlikely that you will feel the material is "over your head" while watching the videos. One of the things I like best about this course is that Test Driven Development and Version Control are used throughout the course.

Report as Inappropriate

Table of Contents

Chapter/Selection

Time

Introduction

Introduction to Ruby on Rails LiveLessons

Preview

00:01:03

Lesson 1: From Zero to Deploy

Learning Objectives

Preview

00:00:24

Introduction

Preview

00:03:22

The first app

Preview

00:05:41

Version control

Preview

00:18:14

Deploying

Preview

00:03:33

Conclusion

Preview

00:01:32

Lesson 2: A Demo App

Learning Objectives

Preview

00:00:26

Introduction

Preview

00:04:43

Planning the application

Preview

00:01:05

The Users resource

Preview

00:17:26

The Microposts resource

Preview

00:11:43

Inheritance hierarchies

Preview

00:09:23

Conclusion

Preview

00:01:36

Lesson 3: Mostly Static Pages

Learning Objectives

Preview

00:00:24

Introduction

Preview

00:01:39

Setting up the sample app

Preview

00:09:47

Static pages

Preview

00:14:50

Our first tests

Preview

00:32:21

Slightly dynamic pages

Preview

00:16:00

Conclusion

Preview

00:00:27

Lesson 4: Rails-Flavored Ruby

Learning Objectives

Preview

00:00:23

Introduction

Preview

00:00:44

Motivation

Preview

00:09:14

Strings and methods

Preview

00:26:01

Other data structures

Preview

00:00:48

Arrays and ranges

Preview

00:08:40

Blocks

Preview

00:08:02

Hashes and symbols

Preview

00:14:17

Ruby classes

Preview

00:16:24

A user class

Preview

00:10:47

Conclusion

Preview

00:00:23

Lesson 5: Filling In the Layout

Learning Objectives

Preview

00:00:26

Introduction

Preview

00:02:10

Adding some structure

Preview

00:33:26

Sass and the asset pipeline

Preview

00:12:54

Layout links

Preview

00:10:35

Pretty RSpec

Preview

00:09:54

User signup: A first step

Preview

00:17:10

Conclusion

Preview

00:00:29

Lesson 6: Modeling Users

Learning Objectives

Preview

00:00:23

Introduction

Preview

00:01:51

User model

Preview

00:22:14

User validations

Preview

00:14:37

Email format

Preview

00:20:44

Email uniqueness

Preview

00:12:22

Adding a secure password

Preview

00:26:54

Addendum with regex correction

Preview

00:02:36

Lesson 7: Sign Up

Learning Objectives

Preview

00:00:24

Introduction

Preview

00:01:58

Showing users

Preview

00:36:43

Signup form

Preview

00:10:53

Signup failure

Preview

00:03:47

Signup success

Preview

00:04:31

Refactoring the tests

Preview

00:05:30

Styling the form HTML

Preview

00:04:11

Signup error messages

Preview

00:11:34

Signup success (with Flash)

Preview

00:04:59

Solutions to exercises

Preview

00:09:48

Deploying to production with SSL

Preview

00:05:30

Conclusion

Preview

00:00:37

Lesson 8: Sign In, Sign Out

Learning Objectives

Preview

00:00:26

Introduction

Preview

00:01:50

Sessions

Preview

00:19:58

Signin failure

Preview

00:04:38

Signin success

Preview

00:12:41

sign_in & a remember token

Preview

00:13:35

A working signin method

Preview

00:03:39

current_user

Preview

00:07:53

Changing the layout links

Preview

00:08:54

Signing out

Preview

00:06:13

Intro to Cucumber (optional)

Preview

00:16:17

Deploying to Heroku

Preview

00:04:44

Addendum on current_user

Preview

00:02:12

Lesson 9: Updating, Showing, and Deleting Users

Learning Objectives

Preview

00:00:29

Introduction

Preview

00:02:52

Updating users

Preview

00:19:41

Successful edits

Preview

00:08:11

Requiring signed-in users

Preview

00:13:14

Requiring the right user

Preview

00:10:49

Friendly forwarding

Preview

00:10:59

Showing all users

Preview

00:11:06

Sample users

Preview

00:07:49

Pagination

Preview

00:12:51

Deleting users

Preview

00:17:21

Deploying to Heroku

Preview

00:02:35

Lesson 10: User Microposts

Learning Objectives

Preview

00:00:26

Introduction

Preview

00:02:43

A Micropost model

Preview

00:19:57

Showing microposts

Preview

00:13:47

Creating microposts

Preview

00:24:05

A proto-feed

Preview

00:16:31

Destroying microposts

Preview

00:06:52

Errata addendum

Preview

00:02:20

Lesson 11: Following Users

Learning Objectives

Preview

00:00:27

Introduction

Preview

00:02:01

The Relationship model

Preview

00:15:09

Followed users and followers

Preview

00:14:50

A web interface

Preview

00:04:00

Stats and a follow form

Preview

00:21:14

Following and followers pages

Preview

00:12:51

A working follow button

Preview

00:11:18

A follow button with Ajax

Preview

00:16:13

The status feed

Preview

00:17:37

Deploying the final sample app

Preview

00:02:21

Conclusion

Preview

00:02:10

Bonus

Installation

Preview

00:08:38

Advanced Setup

Preview

00:18:56

Sublime Text 2

Preview

00:18:00