On Oct 11, 4:33 am, Brian Hartin
<rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org>
wrote:> 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?
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>
> Thanks,
>
> Brian
> --
> Posted viahttp://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---