From: Lee Irving Date: 2007-06-06T02:57:37+09:00 Subject: Re: How to log user's IP in RoR? ------=_Part_20713_26434023.1181066252811 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Try request.env['REMOTE_HOST'] On 6/5/07, Pawel Stawicki wrote: > > Hello, > > I want to log users who enter my site and what they are doing. > Registration and login is not required, so what is left is IP. > (something like wikipedia, you can edit without logging in, and then > there is your IP in log). How to get this IP in Ruby on Rails? > > And if you know some nice tutorial about logging in ruby I would also > appreciate ;) > > Regards > Pawel Stawicki > > ------=_Part_20713_26434023.1181066252811--