demo app from ruby on rails 3 tutorial