title: Using enum in a model, when saving it doesn't like the integer value
body: <p>Using rails 4.1.1</p>
  
  <p>My model has an enum like:</p>
  
  <pre><code>class Article &lt; ActiveRecord::Base
    enum article_status: { published: 1, draft :2 }
  </code></pre>
  
  <p>Now in my new.html.erb I have:</p>
  
  <pre><code>&lt;%= form.select :article_status, options_for_select(Article.article_statuses) %&gt;
  </code></pre>
  
  <p>When going to save the model I get this error:</p>
  
  <pre><code>'1' is not a valid article_status
  </code></pre>
  
  <p>I was thinking it would be able to handle this during an update.</p>
  
  <p>What am I doing wrong?</p>