From a9da952f445958a4cc16a25abb50b930ac8da302 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Tue, 3 Jan 2012 23:34:12 +0100 Subject: Node#partial set layout to nil, maybe use action[:mode]=:partial ?? --- lib/zorglub/node.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/zorglub/node.rb b/lib/zorglub/node.rb index 5e66d1c..f2aaa72 100644 --- a/lib/zorglub/node.rb +++ b/lib/zorglub/node.rb @@ -48,7 +48,8 @@ module Zorglub end # def partial meth, *args - node = self.new nil, {:engine=>engine,:layout=>'',:view=>r(meth),:method=>meth.to_s,:args=>args} + # TODO maybe use :mode=>:partial ??? + node = self.new nil, {:engine=>engine,:layout=>nil,:view=>r(meth),:method=>meth.to_s,:args=>args} return error_404 node if not node.respond_to? meth node.feed! node.content -- cgit v1.1-2-g2b99