The code samples from the book Ruby on Rails. Up and Running (Bruce A. Tate and Curt Hibbs) adapted for Rails 3.2.