Have you tried:
serialize :email_addresses, Array
before_save :split_email addresses
def split_email_addresses
email_addresses.split(' ')
end
Or, just store email addresses in a separate table, and create a
has_many relationship.
On May 19, 3:27 pm, Alex Katebi <[email protected]> wrote:
> I am storing email addresses.
>
> On Thu, May 19, 2011 at 6:21 PM, Walter Lee Davis <[email protected]> wrote:
>
>
>
>
>
>
>
> > What kind of values are you storing in your array? This may be the sort of
> > thing you need to roll yourself.
>
> > Walter
>
> > On May 19, 2011, at 5:38 PM, Alex Katebi <[email protected]> wrote:
>
> >> Is there a form to handle Array type?
>
> >> I generated a scaffold for a model that has Array for a field type.
> >> But the partial form does not handle this type.
>
> >> How do we tie Array types to forms?
>
> >> Thanks,
> >> Alex
>
> >> --
> >> 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 [email protected].
> >> To unsubscribe from this group, send email to
> >> [email protected].
> >> For more options, visit this group
> >> athttp://groups.google.com/group/rubyonrails-talk?hl=en.
>
> > --
> > 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 [email protected].
> > To unsubscribe from this group, send email to
> > [email protected].
> > For more options, visit this group
> > athttp://groups.google.com/group/rubyonrails-talk?hl=en.
--
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 [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.