As per Ruby on Rails Tutorial