Books & Videos

Table of Contents

  1. Chapter 1 Zero to Sixty: Introducing Rails

    1. Putting Rails into Action

    2. Organization

    3. The Web Server

    4. Creating a Controller

    5. Building a View

    6. Tying Controller Data to the View

    7. Under the Hood

    8. What’s Next?

  2. Chapter 2 Scaffolding, REST, and Routes

    1. Introducing Photo Share

    2. Preparing Your Project and Database

    3. Generating a Resource Scaffold

    4. RESTful Routes

    5. Wrapping Up the Scaffolding

    6. What’s Next?

  3. Chapter 3 Active Record Basics

    1. Active Record Basics

    2. Generating Models

    3. Basic Active Record Classes

    4. Attributes

    5. Complex Classes

    6. Behavior

    7. Moving Forward

  4. Chapter 4 Active Record Relationships

    1. belongs_to

    2. has_many

    3. has_one

    4. has_and_belongs_to_many

    5. acts_as_list

    6. Trees

    7. What You Haven’t Seen

    8. Looking Ahead

  5. Chapter 5 Working with Views

    1. The Big Picture

    2. Seeing Real Photos

    3. View Templates

    4. Setting the Default Root

    5. Stylesheets

    6. Hierarchical Categories

    7. Styling the Slideshows

  6. Chapter 6 Ajax

    1. How Rails Implements Ajax

    2. Playing a Slideshow

    3. Using Drag-and-Drop to Reorder Slides

    4. Drag-and-Drop Everything (Almost Everything)

    5. Filtering by Category

  7. Chapter 7 Testing

    1. Background

    2. Ruby’s Test::Unit

    3. Testing in Rails

    4. Test Coverage

    5. Mocking with Mocha

    6. Assertions and Integration Tests

    7. Wrapping Up

  1. Appendix Installing Rails

    1. Windows

    2. OS X

    3. Linux

  2. Appendix Quick Reference

    1. General

    2. Testing

    3. RJS (Ruby JavaScript)

    4. Active Record

    5. Controllers

    6. Views

    7. Ajax

    8. Configuring Your Application

  3. Colophon