I'm having the same issue except I'm wishing to use a check_box for
the roles.
At the moment I have something that looks a little like this...
- fields_for @user do |user_form|
- user_form.fields_for :assign_roles do |role_form|
- Role::POSSIBLE_ROLES.each do |role|
%p
= role_form.check_box role, :checked => @user.has_role?(role)
= role_form.label role.humanize
but when I do this then in the params hash I get something like
this....
"assign_roles"=>{"super_administrator"=>"0", "administrator"=>"1"}
Was hoping I could use the standard @user.update_attributes by making
my filelds_for :roles
but that's not helping me too much.
Would be interested to know where you got to with it.