For work from Michael Hartl's Ruby on Rails tutorial