获取访问路劲

  
  def store_location
    session[:return_to] = request.request_uri
  end

  # for any controller you want to be bounce-backable.
  def redirect_back_or_default(default)
    redirect_to(session[:return_to] || default)
    session[:return_to] = nil
  end

 request.path.delete("/")

你可能感兴趣的:(获取)