Trying to do ...
<% cache do %>
<%= something_expensive() %>
<% end %>
Raises an exception ...
ActionView::TemplateError (undefined local variable or method
`_erbout' for #<ActionView::Base:0x3652d24>) on line #31 of app/views/
home/index.html.erb:
28: </div>
29: <div id="threeColWrap">
30: <div id = "col_1">
31: <% cache do %>
32: <div id = "col-1-head">
I've tried it on both CentOS 5.2 and OSX 10.5, both configured to run
with Rails 2.2.2
I've googled for the error, but all I came across was the same problem
reported a year ago in this group ...
http://groups.google.com/group/rubyonrails-core/browse_thread/thread/9864efb24c1dc3c5/a51eca65716d5da2?lnk=gst&q=cache#a51eca65716d5da2
It refers to a ticket on
http://dev.rubyonrails.org/ticket/10733 ...
but it's a year old.
I find it hard to believe I'm the first person to come across such a
basic and presumably important part of rails being broken in 2.2.2 ...
but maybe ?.
I'd appreciate any help on how to correct it or work around it ...
short of yanking fragment caching from the app.
Thanks.