getting remote ip

Hi all,

i have a situation where i ask user a question and i dont want a user to reply to it more than once,i dont have a login system so i am thinking of keeping track of a user by ip address.

how can i get remote ip in rails??

Thanks in advance

regards gaurav

Try request.remote_ip

Cheers, Carl.

thanks that worked

Be aware that a lot of DSL and ADSL providers use dynamic ip addresses. The same user from the same session could have their ip address renewed.

Regards,

John

gaurav bagga wrote:

logo.gif