diff options
author | Jamis Buck <jamis@37signals.com> | 2005-06-28 21:18:04 +0000 |
---|---|---|
committer | Jamis Buck <jamis@37signals.com> | 2005-06-28 21:18:04 +0000 |
commit | 453ed1539500f3dc9f704bb0933f50cc42bbe46a (patch) | |
tree | e78be3dd0139329509485f8b487c1a5016c5f301 /actionpack/lib | |
parent | 5136c2a16b625f99df3e0255bb8eaf80161b5823 (diff) | |
download | rails-453ed1539500f3dc9f704bb0933f50cc42bbe46a.tar.gz rails-453ed1539500f3dc9f704bb0933f50cc42bbe46a.tar.bz2 rails-453ed1539500f3dc9f704bb0933f50cc42bbe46a.zip |
Routes fail with leading slash #1540 [Nicholas Seckar]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1555 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/lib')
-rw-r--r-- | actionpack/lib/action_controller/routing.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/actionpack/lib/action_controller/routing.rb b/actionpack/lib/action_controller/routing.rb index 998faf356f..5499cd2545 100644 --- a/actionpack/lib/action_controller/routing.rb +++ b/actionpack/lib/action_controller/routing.rb @@ -320,6 +320,7 @@ module ActionController def initialize_components(path) path = path.split('/') if path.is_a? String + path.shift if path.first.blank? self.components = path.collect {|str| Component.new str} end |