Basic working app ported from the rails 2 sample app