The ability to use Rails'' caching is very important to me. Is there any way at all to get Rails caching working with Markaby templates? Right now if I use cache tags, I get some "length" error. Thanks, Joe __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
On Oct 14, 2006, at 10:57 AM, Joe Ruby wrote:> The ability to use Rails'' caching is very important to > me. Is there any way at all to get Rails caching > working with Markaby templates? Right now if I use > cache tags, I get some "length" error.Do you mean page caching? I''m using page caching with a markaby project and it works fine. Could you paste the error message you are getting? Geoff ...................................... Blog | http://nubyonrails.com Podcast | http://podcast.rubyonrails.org Workshops | http://rubyonrailsworkshops.com Screencasts | http://peepcode.com
> On Oct 14, 2006, at 10:57 AM, Joe Ruby wrote: > > The ability to use Rails'' caching is veryimportant to> > me. Is there any way at all to get Rails caching > > working with Markaby templates? Right now if I use > > cache tags, I get some "length" error. > > Do you mean page caching? I''m using page cachingwith a markaby> project and it works fine. > > Could you paste the error message you are getting? > > GeoffI mean fragment caching. I get errors like this: ActionView::TemplateError (/usr/lib/ruby/gems/1.8/gems/markaby-0.5/lib/markaby/builder.rb:192:in `method_missing'': no such method `length'') on line #0 of app/views/items/index.mab: 1: 2: cache("#{@site.server_name}/index_items") do Joe __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
> I mean fragment caching. I get errors like this: > > ActionView::TemplateError > (/usr/lib/ruby/gems/1.8/gems/markaby-0.5/lib/markaby/builder.rb:192:in > `method_missing'': no such method `length'') on line #0 > of app/views/items/index.mab: > 1: > 2: cache("#{@site.server_name}/index_items") do > > > JoeYep, the length error is because a lot of Rails'' internals still assume ERB, which uses a different buffer structure to Markaby. I''ll try to get it working soon. Cheers, Tim