search for: home_email

Displaying 1 result from an estimated 1 matches for "home_email".

2006 Apr 20
5
Mystified by ActiveRecord.serialize
...lt;/code> In contact.rb: <code> class Contact < ActiveRecord::Base ... # this is an Array of TmEmails serialize :emails ... # example that illustrates the problem. # add one email to this contact def example contact = Contact.new(params[:contact]) emails = [] home_email = TmEmail.new(params[:home_email]) if !home_email.empty? emails << home_email end contact.emails = emails ... end end </code> The problem: When my contact object is in memory, the contact.emails looks like this: [#<TmEmail:0x240b8a4 @label="home",...