title: Using Enum and want to access the stored integer value in the view
body: <p>I'm using ActiveRecord's <a href="http://edgeapi.rubyonrails.org/classes/ActiveRecord/Enum.html" rel="nofollow">Enum</a> to store the weekdays with the following:</p>
  
  <pre><code>enum weekday: %w(monday tuesday wednesday thursday friday saturday sunday)
  </code></pre>
  
  <p>When calling the attribute <code>.weekday</code> on the model instance I correctly get the weekday name, e.g. "monday".</p>
  
  <p><strong>How could I get the numeric value (i.e. <code>0</code>) when I need that instead?</strong></p>