app/controllers/teams_controller.rb
# Verifies that a team id is provided as parameter; otherwise
# redirects to the home page.
# Assigns the @team instance when successful.
#
# == Params:
# id: the team id to be processed by most of the methods (see before filter above)
#
Verifies that a team id is provided as parameter; otherwise
redirects to the home page.
Assigns the @team instance when successful.

the team id to be processed by most of the methods
Verifies that a team id is provided as parameter ; otherwise redirects to the home page . Assigns the @team instance when successful . the team id to be processed by most of the methods
def verify_parameter
    set_team
    unless ( @team )
      flash[:error] = I18n.t(:invalid_action_request)
      redirect_back( fallback_location: root_path ) and return
    end
  end
def verify_parameter set_team unless ( @team ) flash [ :error ] = I18n . t ( :invalid_action_request ) redirect_back ( fallback_location : root_path ) and return end end
Verifies that a team id is provided as parameter; otherwise
redirects to the home page.
Verifies that a team id is provided as parameter ; otherwise redirects to the home page .