Rails chapter6

Ruby on Rails Tutorial chapter ~6.5