From 2f5b0204eb657142bcfc99e352b2bfa5aadd3212 Mon Sep 17 00:00:00 2001 From: Geoff Garside Date: Tue, 18 Nov 2008 15:14:55 +0000 Subject: [PATCH] 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. --- actionpack/lib/action_controller/resources.rb | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/actionpack/lib/action_controller/resources.rb b/actionpack/lib/action_controller/resources.rb index 7700b9d..283fbc6 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) -- 1.6.0.3