Jeff,
request.env[''REMOTE_ADDR'']
should do the trick.
Zack
On 7/25/06, Jeff Pritchard <jp@jeffpritchard.com>
wrote:> How can I capture the IP address of a user who is posting my sign-in or
> login forms? I want to store it as part of my user information so that
> if I want to block the user in the future, I can also block the IP
> address they used to sign in.
>
> thanks,
> jp
>
> --
> Posted via http://www.ruby-forum.com/.
> _______________________________________________
> Rails mailing list
> Rails@lists.rubyonrails.org
> http://lists.rubyonrails.org/mailman/listinfo/rails
>