You can pass a second option to options_for_select
that indicates the selected value.
options_for_select(@user_groups.collect { |p| [p.name, p.id] }, @user.user_group)
Obviously I'm not sure how your models are set up, but if necessary you use a method like find to locate the entry you want.