[raleigh.rb] Finding IP address of a user
geoff at geoffdavis.net
Tue Oct 31 15:26:09 EST 2006
In a controller, you can get the visitor's IP address from the request
On Tue, 2006-10-31 at 10:51 -0800, Joe Peck wrote:
> Hi everybody,
> I'm writing an application where users have to register and sign-in.
> At one point I allow them to enter in a credit card, but when they do
> this, I'd like to retrieve the IP of the computer they're using to
> enter in this information (it helps check for fraud).
> How can I do this in Ruby? It's probably pretty easy, but I've been
> looking and can't find a way yet.
> Joe Peck
> Low, Low, Low Rates! Check out Yahoo! Messenger's cheap PC-to-Phone
> call rates.
> raleigh-rb-members mailing list
> raleigh-rb-members at rubyforge.org
More information about the raleigh-rb-members