I want to save a set of email addresses collected from a text field (separated by commas) into a single field in a table. I am trying to use serialize but I'm getting SerializationTypeMismatch error. How can I do this?
This is my model:
class Crew < ActiveRecord::Base
class Recipients < HashWithIndifferentAccess ; end
serialize :recipients, Recipients
end