following beginner rails tutorial