[patch] trunk markaby fix

carmen _ at whats-your.name
Sat Jul 7 01:58:56 EDT 2007


so i guess the parser changed or something..
-------------- next part --------------
Index: camping.rb
===================================================================
--- camping.rb	(revision 194)
+++ camping.rb	(working copy)
@@ -7,7 +7,7 @@
 c=self/c;c="//"+ at env.HTTP_HOST+c if c[/^\//];URI(c)end;def/p;p[/^\//]?@root+p :
 p end;def errors_for o;ul.errors{o.errors.each_full{|x|li x}}if o.errors.any?end
 end;module Base;include Helpers;attr_accessor:input,:cookies,:env,:headers,:body,
-:status,:root;def method_missing*a,&b;a.shift if a[0]==:render;m=Mab.new {},self
+:status,:root;def method_missing*a,&b;a.shift if a[0]==:render;m=Mab.new({},self)
 s=m.capture{send(*a,&b)};s=m.capture{send(:layout){s}} if /^_/!~a[0].to_s and m.
 respond_to?:layout;s end;def r s,b,h={};@status=s;@headers.merge!h;@body=b end
 def redirect*a;r 302,'','Location'=>URL(*a)end;Z="\r\n";def to_a;[@status, at body,


More information about the Camping-list mailing list