Can someone point me to some ROR documentation that describes setting the value of an enum as a string? All the documentation and examples I've found seem to indicate that the value should be an integer. However I am able to create an enum with string values, use it in view and save it to the database without any issues. I would really like to find out more on this topic.
Example that works
Set in ModelName
enum category_enum: { 'abc efg'=> 'alpha', 'hot dog' => 'bun' }
Set in view
<%= f.select :category, ModelName.category_enums %>