Skip to content

Commit

Permalink
Reorder the way in which map.resource routes are added to the set. Th…
Browse files Browse the repository at this point in the history
…is prevents the singular named route from hitting :create instead of :show.

Signed-off-by: Michael Koziarski <michael@koziarski.com>
  • Loading branch information
geoffgarside authored and NZKoz committed Nov 24, 2008
1 parent 8aeed00 commit eac16d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion actionpack/lib/action_controller/resources.rb
Expand Up @@ -535,9 +535,9 @@ def map_singleton_resource(entities, options = {}, &block)


with_options :controller => resource.controller do |map| with_options :controller => resource.controller do |map|
map_collection_actions(map, resource) map_collection_actions(map, resource)
map_default_singleton_actions(map, resource)
map_new_actions(map, resource) map_new_actions(map, resource)
map_member_actions(map, resource) map_member_actions(map, resource)
map_default_singleton_actions(map, resource)


map_associations(resource, options) map_associations(resource, options)


Expand Down

0 comments on commit eac16d0

Please sign in to comment.