This example app is based on railscast episode 392