What is the best way to create a form for editing a model attribute which is an array of strings in
- by foggedin
Take a model with an attribute that is an array of strings. This attribute is serialized to the database.
class MyModel < ActiveRecord::Base
serialize :str_array
end
In the edit view I would like to display a text field for each element of the array allowing the user to view and modify the attributes elements.