diff options
-rw-r--r-- | lib/zorglub/node.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/zorglub/node.rb b/lib/zorglub/node.rb index eee5c0e..a83454f 100644 --- a/lib/zorglub/node.rb +++ b/lib/zorglub/node.rb @@ -40,7 +40,7 @@ module Zorglub end # def call env - meth, *args = env['PATH_INFO'][1..-1].split '/' + meth, *args = env['PATH_INFO'].sub(/^\//,'').split '/' meth||= 'index' node = self.new env, {:engine=>engine,:layout=>layout,:view=>r(meth),:method=>meth,:args=>args} return error_404 node if not node.respond_to? meth |