following rails tutorial for demo_app