diff options
author | Rafael Mendonça França <rafael.franca@plataformatec.com.br> | 2014-11-26 05:42:35 -0200 |
---|---|---|
committer | Rafael Mendonça França <rafael.franca@plataformatec.com.br> | 2014-11-26 05:42:35 -0200 |
commit | 293ca2856b5156ecdde9f91fb9202d4a8209fead (patch) | |
tree | 43bf867999db6fc1ba0fabe44a3945bbe979e166 /actionpack/lib/action_controller | |
parent | fc20bfd4f16bab3dc207923c343f3e9bb5a924cb (diff) | |
parent | 5a9acfdfa039cc6002e235168e2ae0acec1ea8b9 (diff) | |
download | rails-293ca2856b5156ecdde9f91fb9202d4a8209fead.tar.gz rails-293ca2856b5156ecdde9f91fb9202d4a8209fead.tar.bz2 rails-293ca2856b5156ecdde9f91fb9202d4a8209fead.zip |
Merge pull request #17779 from dilpreet92/server_location
Getting the location of the server
Diffstat (limited to 'actionpack/lib/action_controller')
-rw-r--r-- | actionpack/lib/action_controller/base.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/lib/action_controller/base.rb b/actionpack/lib/action_controller/base.rb index 7bbf938987..2e9121167a 100644 --- a/actionpack/lib/action_controller/base.rb +++ b/actionpack/lib/action_controller/base.rb @@ -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 |