following Daniel Kehoe's Learn Rails book