Ruby on Rails Tutorial - Chapter 2 example