sample_app from RoR tutorial