Browse files

Reorder the way in which map.resource routes are added to the set. Th…

…is prevents the singular named route from hitting :create instead of :show.

Signed-off-by: Michael Koziarski <>
  • Loading branch information...
1 parent 8aeed00 commit eac16d0ee1f9a46e686503196e3920e2113ccc0a @geoffgarside geoffgarside committed with NZKoz Nov 18, 2008
Showing with 1 addition and 1 deletion.
  1. +1 −1 actionpack/lib/action_controller/resources.rb
@@ -535,9 +535,9 @@ def map_singleton_resource(entities, options = {}, &block)
with_options :controller => resource.controller do |map|
map_collection_actions(map, resource)
- map_default_singleton_actions(map, resource)
map_new_actions(map, resource)
map_member_actions(map, resource)
+ map_default_singleton_actions(map, resource)
map_associations(resource, options)

0 comments on commit eac16d0

Please sign in to comment.