app/controllers/hooks_controller.rb
def add_job
    session[:external] = params.clone

    session[:external][:ip] = request.remote_ip

    redirect_to action: :add_job_after
  end
# this method hides the billing params from URL when you redirected to CAS
# so that people are less tempted to mess around
this method hides the billing params from URL when you redirected to CAS
so that people are less tempted to mess around
this method hides the billing params from URL when you redirected to CAS so that people are less tempted to mess around
def add_job
    session[:external] = params.clone
    session[:external][:ip] = request.remote_ip
    redirect_to action: :add_job_after
  end
def add_job session [ :external ] = params . clone session [ :external ] [ :ip ] = request . remote_ip redirect_to action : :add_job_after end
this method hides the billing params from URL when you redirected to CAS
so that people are less tempted to mess around
this method hides the billing params from URL when you redirected to CAS so that people are less tempted to mess around