If I render a partial like so:
= render :partial => "event_news_item", :object => event, :variable => true
And then reference variable in the partial a memory leak is triggered. It seems rails goes into a recursion. I have to then quickly restart my server before memory usage spirals out of control.
Anyone knows why the memory leak is triggered here? Can anyone confirm this on their machine?
If I do
= render :partial => "event_news_item", :object => event
An error is raised correctly when trying to reference variable in the partial.
(The correct way of doing this by the way is
= render :partial => "event_news_item", :object => event, :locals => { :variable => true })