How do I capture an IP address and send it into a database field?
There is no DRY convention for this like a password_confirmation for
example right?
On Mon, 2007-10-15 at 13:38 +0000, [email protected] wrote:
How do I capture an IP address and send it into a database field?
There is no DRY convention for this like a password_confirmation for
example right?
model.ip_address = request.remote_ip
–
Tore D.
[email protected]
Trondheim, NO
http://tore.darell.no/
Thanks, it works.
Tore D. wrote:
On Mon, 2007-10-15 at 13:38 +0000, [email protected] wrote:
How do I capture an IP address and send it into a database field?
There is no DRY convention for this like a password_confirmation for
example right?model.ip_address = request.remote_ip
–
Tore D.
[email protected]
Trondheim, NO
http://tore.darell.no/
i used
request.remote_ip
but i am getting different ip address at local and at server… its
strange…
can any one give any idea…
on your local machine it might give you the ip of your lan/intranet
(from your router). on your server you get the external one given to
you by your isp.