From 0727af86fccb249f361901540d2977c2180be930 Mon Sep 17 00:00:00 2001 From: Rick Olson Date: Mon, 8 Jan 2007 01:07:48 +0000 Subject: Fix bug where nested resources ignore a parent singleton parent's path prefix. Closes #6940 [Dan Kubb] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5872 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- 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 94f944f842..fd3c08c303 100644 --- a/actionpack/lib/action_controller/resources.rb +++ b/actionpack/lib/action_controller/resources.rb @@ -307,7 +307,7 @@ module ActionController map_member_actions(map, resource) if block_given? - with_options(:path_prefix => resource.singular, &block) + with_options(:path_prefix => resource.nesting_path_prefix, &block) end end end -- cgit v1.2.3