From eac16d0ee1f9a46e686503196e3920e2113ccc0a Mon Sep 17 00:00:00 2001 From: Geoff Garside Date: Tue, 18 Nov 2008 15:14:55 +0000 Subject: Reorder the way in which map.resource routes are added to the set. This prevents the singular named route from hitting :create instead of :show. Signed-off-by: Michael Koziarski --- actionpack/lib/action_controller/resources.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'actionpack/lib/action_controller') diff --git a/actionpack/lib/action_controller/resources.rb b/actionpack/lib/action_controller/resources.rb index b5ea764911..c170528af1 100644 --- a/actionpack/lib/action_controller/resources.rb +++ b/actionpack/lib/action_controller/resources.rb @@ -535,9 +535,9 @@ module ActionController 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) -- cgit v1.2.3