title: How to Properly Configure Rails 4.1 Enums in ActiveAdmin
body: <p>I've got a Rails 4.1 app in which I use an enum to represent the privacy level of an object.</p>
  
  <p>In my schema:</p>
  
  <pre><code>t.integer "privacy_level", default: 0
  </code></pre>
  
  <p>In my model:</p>
  
  <pre><code>enum privacy_level: { privacy_private: 0, privacy_trusted: 1, privacy_public: 2 }
  </code></pre>
  
  <p>In my ActiveAdmin register file:</p>
  
  <pre><code>index do
    column :privacy_level
    default_actions
  end
  
  form do |f|
    f.inputs "Edit My Model" do
      f.input :privacy_level
    end
    f.actions
  end
  </code></pre>
  
  <p>On the ActiveAdmin index page, it works great. The privacy level of each object shows up as "privacy_private", "privacy_trusted", and "privacy_public".</p>
  
  <p>However, when I try to edit an object, the input type is a number box with up and down arrows which allow me to put any integer in, regardless of whether or not the integer is a valid privacy level (even negative values). </p>
  
  <p>What I would like to see is a dropdown (select) input with the three enumerated string values I defined in my model.</p>