sample app from the rail tutorial