def update
    @user_group = UserGroup.find params[:id]
    if @user_group.update resource_params
      flash[:notice] = 'Updated the user group.'
      redirect_to action: :index