main app from Michael Hartl's Ruby on Rails Tutorial