title: Ruby-on-Rails: Can enum value be a string. Where is this documented?
body: <p>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.</p>
  
  <p>Example that works</p>
  
  <p>Set in ModelName</p>
  
  <pre><code>enum category_enum: { 'abc efg'=&gt; 'alpha', 'hot dog' =&gt; 'bun' }
  </code></pre>
  
  <p>Set in view</p>
  
  <pre><code>&lt;%= f.select :category, ModelName.category_enums %&gt;
  </code></pre>