<% if f.object.group.blank? || f.object.group.active? %> <%= f.select :group_id, active_user_groups_select_options(current_user) %> <% else %> <%= f.object.user_group.name %> <% end %>

Perfis

<%= f.fields_for :role_group_users do |role_group_user| %> <%= render "role_group_user_fields", f: role_group_user %> <% end %> <%= link_to_remove_association "Remover", f %>