Table of Contents


Chapter 1. Understanding Models

  • Turning Tables Into Models
  • Model Associations
  • No Auto-incrementing Primary Key
  • Updating Denormalized Data
  • Removing Cached Data Upon Record Deletion
  • Making Your Models Behave: Behaviors
  • Request Routing

Chapter 2. Creating Controllers

  • Determining Controller Names
  • Linking Models to Controllers
  • Components For Your Controllers

Chapter 3. Layouts

  • Setting Character Sets
  • Setting Page Titles
  • JavaScript Usage
  • Actual Content
  • CSS
  • META Content

Chapter 4. Separating Business Logic From Presentation Logic

  • Helpers for Your Views

Chapter 5. Untwhirling the Spaghetti

  • Fat Models, Skinny Controllers
  • Hopelessly Twisted
  • Easy Drop-Down Lists
  • Model Association Tweaking
  • Multiple Select Drop-Downs

Chapter 6. Refactoring Multiple Record Editing

  • Simplified Views
  • Filtering and Updating Records
  • Only Updating the Data You Need To

Chapter 7. Easy Batch Record Manipulation

  • Using N.field Notation In Your Forms

Chapter 8. Easy Batch Record Addition

  • Easy Arrays in Forms
  • Saving and Validating Data

Chapter 9. Displaying Data Simply

  • Simple Data Collection for Display
  • Grouping Display Output By Criteria
  • Business Logic Where It Belongs

Chapter 10. Playing with Date Ranges

  • Real World Date Forms
  • Date Form Automagic

Chapter 11. Wrapping It All Up