Forum: Ruby on Rails Too many marshall dump/load calls?

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
218ad981316abb835a853bdf6d3039af?d=identicon&s=25 Brian Hartin (bjhartin)
on 2008-10-11 05:33
Hi all,

I have a model that is populated from XML using REXML.  As many have
written, REXML seems to add singleton methods incompatible with normal
Marshalling as used with file/db session stores.  So, I wrote my own
_dump and _load methods.  In the course of doing so, I noticed that the
dump/load is called _way_ more often than I thought.  One request to a
basic 'show' method results in about 18 dump/loads.

Any idea what could cause this?  I have made heavy use of partials,
content_for, etc. to clean up my views.  Could that be the culprit?

Thanks,

Brian
81b61875e41eaa58887543635d556fca?d=identicon&s=25 Frederick Cheung (Guest)
on 2008-10-12 02:09
(Received via mailing list)
On Oct 11, 4:33 am, Brian Hartin <rails-mailing-l...@andreas-s.net>
wrote:
> content_for, etc. to clean up my views.  Could that be the culprit?
The obvious thing would be to have your dump method log the callstack
(eg with caller) whenever it is called. Run your action and see who is
causing dump to be called.

Fred
This topic is locked and can not be replied to.