I have an ActiveRecord model (called Festival) that contains an array of
“FestDate” objects serialized into a sql text column of the Festival
(like the Agile book first edition describes on p. 205)
The FestDate objects themselvs are not ActiveRecord objects. (of
otherwise they would be in their own table…)
When working with a Festival, I would like to use various kinds of form
helpers while iterating over the various FestDate objects. For example,
would like to use select_hour and select_minute tags, but when I do,
all end up having the same name. I am supposing this is because I am
iterating over an AR object, but one of my own creation.
Also, when I try to use the check_box helper, it does not correctly pick
the value of boolean fields in the FestDate object. Again, this is
I am not working with an AR object.
Is there any way to make this work? I suppose I could go to the trouble
make these FestDate object into AR objects, and store them in their own
table, and setup the relationship, but it seems an awful lot of
just so the helpers will work.
If anyone has any ideas, I would be grateful.