sample app from ruby on rails 3 tutorial