You are previewing Ruby on Rails Tutorial: Learn Web Development with Rails, Fourth Edition.
O'Reilly logo
Ruby on Rails Tutorial: Learn Web Development with Rails, Fourth Edition

Book Description

This is the Rough Cut version of the printed book.

Best-selling author and leading Rails developer Michael Hartl teaches web development with Rails by guiding you through the creation of three example applications of increasing sophistication. The focus throughout is on the fundamental techniques in web development needed for virtually any kind of application. The updates to this edition include smaller, more manageable chapters and hundreds of new exercises, interspersed in every chapter to immediately reinforce the material. The book is fully updated for Rails 5.

Table of Contents

  1. Contents
  2. Chapter 1. From zero to deploy
    1. 1.1. Introduction
    2. 1.2. Up and running
    3. 1.3. The first application
    4. 1.4. Version control with Git
    5. 1.5. Deploying
    6. 1.6. Conclusion
  3. Chapter 2. A toy app
    1. 2.1. Planning the application
    2. 2.2. The Users resource
    3. 2.3. The Microposts resource
    4. 2.4. Conclusion
  4. Chapter 3. Mostly static pages
    1. 3.1. Sample app setup
    2. 3.2. Static pages
    3. 3.3. Getting started with testing
    4. 3.4. Slightly dynamic pages
    5. 3.5. Conclusion
    6. 3.6. Advanced testing setup
  5. Chapter 4. Rails-flavored Ruby
    1. 4.1. Motivation
    2. 4.2. Strings and methods
    3. 4.3. Other data structures
    4. 4.4. Ruby classes
    5. 4.5. Conclusion
  6. Chapter 5. Filling in the layout
    1. 5.1. Adding some structure
    2. 5.2. Sass and the asset pipeline
    3. 5.3. Layout links
    4. 5.4. User signup: A first step
    5. 5.5. Conclusion
  7. Chapter 6. Modeling users
    1. 6.1. User model
    2. 6.2. User validations
    3. 6.3. Adding a secure password
    4. 6.4. Conclusion
  8. Chapter 7. Sign up
    1. 7.1. Showing users
    2. 7.2. Signup form
    3. 7.3. Unsuccessful signups
    4. 7.4. Successful signups
    5. 7.5. Professional-grade deployment
    6. 7.6. Conclusion
  9. Chapter 8. Basic login
    1. 8.1. Sessions
    2. 8.2. Logging in
    3. 8.3. Logging out
    4. 8.4. Conclusion
  10. Chapter 9. Advanced login
    1. 9.1. Remember me
    2. 9.2. “Remember me” checkbox
    3. 9.3. Remember tests
    4. 9.4. Conclusion
  11. Chapter 10. Updating, showing, and deleting users
    1. 10.1. Updating users
    2. 10.2. Authorization
    3. 10.3. Showing all users
    4. 10.4. Deleting users
    5. 10.5. Conclusion
  12. Chapter 11. Account activation
    1. 11.1. Account activations resource
    2. 11.2. Account activation emails
    3. 11.3. Activating the account
    4. 11.4. Email in production
    5. 11.5. Conclusion
  13. Chapter 12. Password reset
    1. 12.1. Password resets resource
    2. 12.2. Password reset emails
    3. 12.3. Resetting the password
    4. 12.4. Email in production (take two)
    5. 12.5. Conclusion
    6. 12.6. Proof of expiration comparison
  14. Chapter 13. User microposts
    1. 13.1. A Micropost model
    2. 13.2. Showing microposts
    3. 13.3. Manipulating microposts
    4. 13.4. Micropost images
    5. 13.5. Conclusion
  15. Chapter 14. Following users
    1. 14.1. The Relationship model
    2. 14.2. A web interface for following users
    3. 14.3. The status feed
    4. 14.4. Conclusion