diff options
author | Andrew White <andyw@pixeltrix.co.uk> | 2011-02-14 02:56:09 +0000 |
---|---|---|
committer | Andrew White <andyw@pixeltrix.co.uk> | 2011-02-14 02:56:09 +0000 |
commit | 460a341682518f554f5466a7b010c2bc51875060 (patch) | |
tree | 97569a8e8b72ffcc9bba5a6de35a7dd4ae5b223e /actionpack/lib | |
parent | fd7605826a6e4f7590e4abf42c6c9d0923afc4ef (diff) | |
download | rails-460a341682518f554f5466a7b010c2bc51875060.tar.gz rails-460a341682518f554f5466a7b010c2bc51875060.tar.bz2 rails-460a341682518f554f5466a7b010c2bc51875060.zip |
Fix named route helper for routes nested inside deeply nested resources
[#6416 state:resolved]
Diffstat (limited to 'actionpack/lib')
-rw-r--r-- | actionpack/lib/action_dispatch/routing/mapper.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_dispatch/routing/mapper.rb b/actionpack/lib/action_dispatch/routing/mapper.rb index 85c09a3fda..589df218a8 100644 --- a/actionpack/lib/action_dispatch/routing/mapper.rb +++ b/actionpack/lib/action_dispatch/routing/mapper.rb @@ -1442,7 +1442,7 @@ module ActionDispatch name = case @scope[:scope_level] when :nested - [member_name, prefix] + [name_prefix, prefix] when :collection [prefix, name_prefix, collection_name] when :new |