Tore Darell 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 Darell > [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.. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---

