search for: tmemail

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

Did you mean: themail
2006 Apr 20
5
Mystified by ActiveRecord.serialize
...code is based on an example of this capability in the "Agile Web Dev. w/ Rails" book (p. 196). In create.sql: <code> create table contacts ( ... emails text, ... ); </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...