Re: [Rails] Record Remote IP Address

2010-09-03 Thread Trevor Langas
I figured it out. def set_current_ip if params[:organization] && params[:host] @getip = Getip.new @getip.organization = params[:organization] @getip.host = params[:host] @getip.dyn_ip = request.env['REMOTE_ADDR']

[Rails] Record Remote IP Address

2010-09-03 Thread tlangas
I've seen several examples online about people wanting to record the visitors remote IP Address for their own reasons. In my case I want to record the IP address from a remote computer that uses a dynamic IP address. I need this information saved without user interaction. Right now I have a simple