I have an interests table that only has a :name attribute.
I’m trying to seed (via seed.rb) the following array so that they all display in my form (checkbox)… How would I do that?
Is there a better way than storing this in seed.rb?
[ "Adventure Sports", "Arts and Crafts", "Beauty/Hair",
"Books", "Dining Out", "Fine Art", "Fine Jewelry",
"Gardening", "Golf" ]
If you want to put it into your seed.rb, you create them like you would elsewhere, e.g.
Alternatively, you could store them in your Model as a constant and use that in your form.
And then in your form e.g.: