From tutorial Rails 3 in Action by Bigg nd Katz