Pawel Stawicki wrote:
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 I mean logging events to some file, not logging users to
A google search for this 'rails ip address of client' returned this:
which gave this:
ip_addr = request.env['REMOTE_ADDR']
Sorry, can't answer the second question
6/22/2007 | 7:53 PM.