Wednesday, August 4, 2010

How to get the logged in user ip address in rails

ip_address = request.env['REMOTE_ADDR']

No comments:

Post a Comment