bianster-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2007-Aug-02 11:20 UTC
Deserializing objects in the controller
I''ve an AR model that serializes another object (A), which does not inherit from ActiveRecord::Base. The problem I''m facing is that while A can be deserialized properly in script/console, it deserializes as YAML::Object in the controller. This means that the methods on A are not available on the deserialized instance and I receive NoMethodError messages. I''ve tried to use YAML to manually perform serialization/ deserialization but the problem doesn''t go away. --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Maybe Matching Threads
- ActiveRecord serialize method not returning YAML array in test environment.
- serializing / deserializing active records with children
- YAML failing to de-serialize
- [RFC][ThinLTO] llvm-dis ThinLTO summary dump format
- [RFC][ThinLTO] llvm-dis ThinLTO summary dump format