from tutorial ruby on rail demo_app