O'Reilly logo

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Ruby on Rails, Second Edition

Video Description

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.

Table of Contents

  1. Introduction
    1. Introduction to Ruby on Rails LiveLessons 00:01:03
  2. Lesson 1: From Zero to Deploy
    1. Learning Objectives 00:00:24
    2. Introduction 00:03:22
    3. The first app 00:05:42
    4. Version control 00:18:14
    5. Deploying 00:03:33
    6. Conclusion 00:01:32
  3. Lesson 2: A Demo App
    1. Learning Objectives 00:00:26
    2. Introduction 00:04:44
    3. Planning the application 00:01:06
    4. The Users resource 00:17:27
    5. The Microposts resource 00:11:44
    6. Inheritance hierarchies 00:09:23
    7. Conclusion 00:01:36
  4. Lesson 3: Mostly Static Pages
    1. Learning Objectives 00:00:24
    2. Introduction 00:01:40
    3. Setting up the sample app 00:09:47
    4. Static pages 00:14:50
    5. Our first tests 00:32:21
    6. Slightly dynamic pages 00:16:01
    7. Conclusion 00:00:27
  5. Lesson 4: Rails-Flavored Ruby
    1. Learning Objectives 00:00:23
    2. Introduction 00:00:45
    3. Motivation 00:09:15
    4. Strings and methods 00:26:01
    5. Other data structures 00:00:48
    6. Arrays and ranges 00:08:40
    7. Blocks 00:08:03
    8. Hashes and symbols 00:14:17
    9. Ruby classes 00:16:24
    10. A user class 00:10:48
    11. Conclusion 00:00:23
  6. Lesson 5: Filling In the Layout
    1. Learning Objectives 00:00:26
    2. Introduction 00:02:11
    3. Adding some structure 00:33:27
    4. Sass and the asset pipeline 00:12:54
    5. Layout links 00:10:36
    6. Pretty RSpec 00:09:55
    7. User signup: A first step 00:17:11
    8. Conclusion 00:00:29
  7. Lesson 6: Modeling Users
    1. Learning Objectives 00:00:23
    2. Introduction 00:01:52
    3. User model 00:22:14
    4. User validations 00:14:38
    5. Email format 00:20:45
    6. Email uniqueness 00:12:22
    7. Adding a secure password 00:26:54
    8. Addendum with regex correction 00:02:37
  8. Lesson 7: Sign Up
    1. Learning Objectives 00:00:24
    2. Introduction 00:01:59
    3. Showing users 00:36:43
    4. Signup form 00:10:53
    5. Signup failure 00:03:48
    6. Signup success 00:04:32
    7. Refactoring the tests 00:05:31
    8. Styling the form HTML 00:04:11
    9. Signup error messages 00:11:35
    10. Signup success (with Flash) 00:04:59
    11. Solutions to exercises 00:09:49
    12. Deploying to production with SSL 00:05:31
    13. Conclusion 00:00:38
  9. Lesson 8: Sign In, Sign Out
    1. Learning Objectives 00:00:26
    2. Introduction 00:01:51
    3. Sessions 00:19:58
    4. Signin failure 00:04:39
    5. Signin success 00:12:41
    6. sign_in & a remember token 00:13:36
    7. A working signin method 00:03:40
    8. current_user 00:07:53
    9. Changing the layout links 00:08:55
    10. Signing out 00:06:14
    11. Intro to Cucumber (optional) 00:16:17
    12. Deploying to Heroku 00:04:44
    13. Addendum on current_user 00:02:12
  10. Lesson 9: Updating, Showing, and Deleting Users
    1. Learning Objectives 00:00:29
    2. Introduction 00:02:53
    3. Updating users 00:19:42
    4. Successful edits 00:08:11
    5. Requiring signed-in users 00:13:15
    6. Requiring the right user 00:10:49
    7. Friendly forwarding 00:10:59
    8. Showing all users 00:11:07
    9. Sample users 00:07:50
    10. Pagination 00:12:52
    11. Deleting users 00:17:22
    12. Deploying to Heroku 00:02:36
  11. Lesson 10: User Microposts
    1. Learning Objectives 00:00:26
    2. Introduction 00:02:44
    3. A Micropost model 00:19:57
    4. Showing microposts 00:13:47
    5. Creating microposts 00:24:05
    6. A proto-feed 00:16:31
    7. Destroying microposts 00:06:52
    8. Errata addendum 00:02:20
  12. Lesson 11: Following Users
    1. Learning Objectives 00:00:28
    2. Introduction 00:02:02
    3. The Relationship model 00:15:10
    4. Followed users and followers 00:14:50
    5. A web interface 00:04:00
    6. Stats and a follow form 00:21:15
    7. Following and followers pages 00:12:52
    8. A working follow button 00:11:19
    9. A follow button with Ajax 00:16:13
    10. The status feed 00:17:37
    11. Deploying the final sample app 00:02:22
    12. Conclusion 00:02:10
  13. Bonus
    1. Installation 00:08:39
    2. Advanced Setup 00:18:57
    3. Sublime Text 2 00:18:00