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

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