If I really wanted to work with strings, I would probably define a User :: PERMISSIONS constant that includes the specified permissions.
class User < ActiveRecord::Base
PERMISSIONS = ['user','org_admin','site_admin']
validates_inclusion_of :permission, :in => PERMISSIONS
end
( simple_form )
simple_form_for(@user) do |f|
f.input :permission, :as => :select, :collection => User::PERMISSIONS
end
allow_id .
, , .