diff options
author | Andrew White <andyw@pixeltrix.co.uk> | 2010-09-18 13:32:54 +0100 |
---|---|---|
committer | Andrew White <andyw@pixeltrix.co.uk> | 2010-09-18 13:32:54 +0100 |
commit | 013ed1c0503e59dc8f1cfff1bd00d0e579c604a1 (patch) | |
tree | 62a36951319bb2ef1eb748a4953b444202493254 /actionpack/lib | |
parent | 5ff2b73b4806f135f7279604faf938239dc8ce36 (diff) | |
download | rails-013ed1c0503e59dc8f1cfff1bd00d0e579c604a1.tar.gz rails-013ed1c0503e59dc8f1cfff1bd00d0e579c604a1.tar.bz2 rails-013ed1c0503e59dc8f1cfff1bd00d0e579c604a1.zip |
Remove leading slash from controller [#5651 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 8a161b0837..42ca351cfa 100644 --- a/actionpack/lib/action_dispatch/routing/mapper.rb +++ b/actionpack/lib/action_dispatch/routing/mapper.rb @@ -137,7 +137,7 @@ module ActionDispatch { } else if to.is_a?(String) - controller, action = to.split('#') + controller, action = to.sub(%r{\A/}, '').split('#') elsif to.is_a?(Symbol) action = to.to_s end |