From 4c727eb185b27c6ef5c1c2a2283d7a8adf21a06b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Wed, 3 Aug 2011 14:34:49 +0200 Subject: fix Node.call usage of Node.r --- lib/zorglub/node.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/zorglub/node.rb b/lib/zorglub/node.rb index 73811ea..4b75286 100644 --- a/lib/zorglub/node.rb +++ b/lib/zorglub/node.rb @@ -30,7 +30,7 @@ module Zorglub def call env meth, *args = env['PATH_INFO'][1..-1].split '/' meth||= 'index' - action = {:engine=>engine,:layout=>layout,:view=>File.join(r,meth),:method=>meth,:args=>args} + action = {:engine=>engine,:layout=>layout,:view=>r(meth),:method=>meth,:args=>args} node = self.new Rack::Request.new(env), Rack::Response.new, action return error_404 node if not node.respond_to? meth node.realize -- cgit v1.1-2-g2b99