I\'ve got a Rails 4.1 app in which I use an enum to represent the privacy level of an object.
In my schema:
t.integer \"privacy_level\", default: 0
Building off of Jack's answer, here's what worked for me. Say your ActiveRecord model is Tweets
:
f.input :privacy_level, as: :select, collection: Tweet.privacy_levels.keys
Key things to note here: