app/controllers/team_management_controller.rb
# Require authorization before invoking any of this controller's actions:
Require authorization before invoking any of this controller's actions.
Require authorization before invoking any of this controller ' s actions .
def update_team
    if request.put?
      if @team.update( team_params )
        flash[:info] = I18n.t('changes_saved_ok')
      redirect_to( team_radio_path(id: @team.id) ) and return
      else
        flash[:error] = I18n.t('changes_saved_error')
      end
    else
      flash[:error] = I18n.t(:invalid_action_request)
      redirect_to( team_radio_path(id: @team.id) ) and return
    end
  end
def update_team if request . put? if @team . update ( team_params ) flash [ :info ] = I18n . t ( 'changes_saved_ok' ) redirect_to ( team_radio_path ( id : @team . id ) ) and return else flash [ :error ] = I18n . t ( 'changes_saved_error' ) end else flash [ :error ] = I18n . t ( :invalid_action_request ) redirect_to ( team_radio_path ( id : @team . id ) ) and return end end
Require authorization before invoking any of this controller's actions:
Require authorization before invoking any of this controller ' s actions :