diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2005-07-03 12:01:06 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2005-07-03 12:01:06 +0000 |
commit | 5524dedc06b142c98c35fbd86b24f37bc10458b3 (patch) | |
tree | 22785dc504339a568b6d61ccbf274adfefee7974 /actionpack/lib | |
parent | 208291391cdb34d4893ab3e32312edbe2b180095 (diff) | |
download | rails-5524dedc06b142c98c35fbd86b24f37bc10458b3.tar.gz rails-5524dedc06b142c98c35fbd86b24f37bc10458b3.tar.bz2 rails-5524dedc06b142c98c35fbd86b24f37bc10458b3.zip |
Fixed routing bug #1592
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1645 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/lib')
-rw-r--r-- | actionpack/lib/action_controller/routing.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/actionpack/lib/action_controller/routing.rb b/actionpack/lib/action_controller/routing.rb index f2e7df6d6d..3771d3fead 100644 --- a/actionpack/lib/action_controller/routing.rb +++ b/actionpack/lib/action_controller/routing.rb @@ -360,10 +360,12 @@ module ActionController def generate(options, request_or_recall_hash = {}) recall = request_or_recall_hash.is_a?(Hash) ? request_or_recall_hash : request_or_recall_hash.symbolized_path_parameters + use_recall = true controller = options[:controller] recall_controller = recall[:controller] if (recall_controller && recall_controller.include?(?/)) || (controller && controller.include?(?/)) + recall = {} if controller && controller[0] == ?/ options[:controller] = Routing.controller_relative_to(controller, recall_controller) end options = recall.dup if options.empty? # XXX move to url_rewriter? |