sample_app following ror tutorial