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 <alex.kat...@gmail.com> wrote:
> I am storing email addresses.
>
> On Thu, May 19, 2011 at 6:21 PM, Walter Lee Davis <wa...@wdstudio.com> 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 <alex.kat...@gmail.com> 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 rubyonrails-talk@googlegroups.com.
> >> To unsubscribe from this group, send email to 
> >> rubyonrails-talk+unsubscr...@googlegroups.com.
> >> 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 rubyonrails-talk@googlegroups.com.
> > To unsubscribe from this group, send email to 
> > rubyonrails-talk+unsubscr...@googlegroups.com.
> > 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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to