Did you use ActiveRecord''s serialization?
class MyModel < ActiveRecord::Base
serialize :data, Hash
end
If so, you can simple call from your model to get your hash back.
mymodel = MyModel.find(prams[:id])
myhash = mymodel.data
field1 = myhash[:field1]
Thank you,
Glen
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---