As per the Ruby on Rails Tutorial by Michael Hartl