Archive for December 30th, 2007
Dec 30
So howzz Rails2.0? Its Awesome !
General| 3 Comments »Added the “rake routes” task, which will list all the named routes created by routes.rb.
All resource-based controllers will be plural by default. This allows a single resource to be mapped in multiple contexts and still refer to the same controller. Example:
# /avatars/45 => AvatarsController#show
map.resources :avatars
# /people/5/avatar => AvatarsController#show
map.resources :people, :has_one => […]
