As far as I can tell, it's not possible to do :
<% cache("stuff") do %>
<%= something_expensive() %>
<% end %>
in a view on edge rails, without it raising an exception. That
sounds
unlikely, I know - I find it hard to believe that such an obvious bug
would have lasted so long. ('long' being a relative term, of
course - 6 days is an eternity in edge rails timescales!)
The ticket is here -
http://dev.rubyonrails.org/ticket/10733. Is
anyone on edge rails using fragment caching without problems?
And assuming this is a bug, can anything be done to improve cache
testing so it catches stuff like this?