<%= simple_form_for([:admin, @user]) do |f| %> <%= f.input :state, collection: [:active, :blocked], as: :radio_buttons %> <%= f.association :roles, as: :check_boxes, label_method: ->(r) { t(r.name, scope: 'role.names') } %> <%= f.submit t(:save), class: 'btn btn-default' %> <% end %>