Following the ruby on rails 3 tutorial by Michael Hartl