Example 1 in Ruby on Rails tutorial