Follwing demo app in Ruby on Rails tutorial