I have this in my model:
class Person < ActiveRecord::Base
RELATIONSHIP_STATUSES = [
"single",
"in a relationship",
"together",
"it's complicated"
]
validates :relationship_status, :inclusion => RELATIONSHIP_STATUSES
end
This in the view:
collection_select(:person, :relationship_status, Person::RELATIONSHIP_STATUSES, :to_s)
And I would like to translate that to simple_form. Is that possible?
If I understood you right, it’s simple(it’s for
formtastic):