following Hartl's Rails tutorial