aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_controller/routing.rb
diff options
context:
space:
mode:
Diffstat (limited to 'actionpack/lib/action_controller/routing.rb')
-rw-r--r--actionpack/lib/action_controller/routing.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/actionpack/lib/action_controller/routing.rb b/actionpack/lib/action_controller/routing.rb
index d2e719bf40..940136efd0 100644
--- a/actionpack/lib/action_controller/routing.rb
+++ b/actionpack/lib/action_controller/routing.rb
@@ -577,6 +577,7 @@ module ActionController
def name_route(route, name)
hash = route.known.symbolize_keys
+ hash[:controller] = "/#{hash[:controller]}"
define_method(hash_access_name(name)) { hash }
module_eval(%{def #{url_helper_name name}(options = {})