diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2006-05-17 19:52:06 +0000 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2006-05-17 19:52:06 +0000 |
commit | 0cd883e1e1752c92ba080850833c6989a057bf6c (patch) | |
tree | 27845dd51a4e5c0174ff67ac77c01a30defdf087 /actionpack/lib/action_controller | |
parent | 7252666b74e00c569b431d1a798fb7280923929f (diff) | |
download | rails-0cd883e1e1752c92ba080850833c6989a057bf6c.tar.gz rails-0cd883e1e1752c92ba080850833c6989a057bf6c.tar.bz2 rails-0cd883e1e1752c92ba080850833c6989a057bf6c.zip |
Change the request.env example in AC::Base docs to a var that exists (REMOTE_IP doesn't) and isn't already wrapped by a request method (i.e. request.remote_ip). Closes #5113.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4347 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/lib/action_controller')
-rwxr-xr-x | actionpack/lib/action_controller/base.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/actionpack/lib/action_controller/base.rb b/actionpack/lib/action_controller/base.rb index 475144f539..098b7265de 100755 --- a/actionpack/lib/action_controller/base.rb +++ b/actionpack/lib/action_controller/base.rb @@ -87,9 +87,9 @@ module ActionController #:nodoc: # The full request object is available with the request accessor and is primarily used to query for http headers. These queries # are made by accessing the environment hash, like this: # - # def hello_ip - # location = request.env["REMOTE_IP"] - # render :text => "Hello stranger from #{location}" + # def server_ip + # location = request.env["SERVER_ADDR"] + # render :text => "This server hosted at #{location}" # end # # == Parameters |