提交 5a9acfdf 编写于 作者: D dilpreet92 提交者: Rafael Mendonça França

getting the location of the server

上级 fc20bfd4
......@@ -44,10 +44,10 @@ module ActionController
# The full request object is available via the request accessor and is primarily used to query for HTTP headers:
#
# def server_ip
# location = request.env["SERVER_ADDR"]
# location = request.env["REMOTE_ADDR"]
# render plain: "This server hosted at #{location}"
# end
#
#
# == Parameters
#
# All request parameters, whether they come from a GET or POST request, or from the URL, are available through the params method
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册