Undefined method `+' for nil:NilClass when remote_address is blank #1

bmorrall opened this Issue Dec 4, 2011 · 0 comments


None yet
1 participant

bmorrall commented Dec 4, 2011

When I copied a ga link from my website, and then used curl to view the returned header info, I received a 500 exception:

NoMethodError (undefined method +' for nil:NilClass): app/controllers/ga_controller.rb:45:inget_ip'
app/controllers/ga_controller.rb:136:in track_pageview' app/controllers/ga_controller.rb:17:inutm_gif'
/path/to/app/bundle/ruby/1.9.1/bin/unicorn:19:in load' /path/to/app/bundle/ruby/1.9.1/bin/unicorn:19:in


It appears that value remote_address.to_s returns null on my Ubuntu 10.04 machine while using ruby-1.9.2p290.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment