Hi all, i have a situation where i ask user a question and i dont want a user to reply to it more than once,i dont have a login system so i am thinking of keeping track of a user by ip address. how can i get remote ip in rails?? Thanks in advance regards gaurav --~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Try request.remote_ip Cheers, Carl. On 11/14/06, gaurav bagga <gaurav.v.bagga-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hi all, > > i have a situation where i ask user a question and i dont want a user to > reply to it more than once,i dont have a login system so i > am thinking of keeping track of a user by ip address. > > how can i get remote ip in rails?? > > Thanks in advance > > regards > gaurav > > > >-- Carl Woodward 0412218979 cjwoodward-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org --~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
thanks that worked On 11/14/06, Carl Woodward <cjwoodward-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > > Try request.remote_ip > > Cheers, > Carl. > > On 11/14/06, gaurav bagga <gaurav.v.bagga-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > Hi all, > > > > i have a situation where i ask user a question and i dont want a user > to > > reply to it more than once,i dont have a login system so i > > am thinking of keeping track of a user by ip address. > > > > how can i get remote ip in rails?? > > > > Thanks in advance > > > > regards > > gaurav > > > > > > > > > > -- > Carl Woodward > 0412218979 > cjwoodward-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org > > > >--~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Be aware that a lot of DSL and ADSL providers use dynamic ip addresses.
The same user from the same session could have their ip address renewed.
Regards,
John
gaurav bagga wrote:
thanks that worked
On 11/14/06, Carl Woodward
<cjwoodward-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
Try request.remote_ip
Cheers,
Carl.
On 11/14/06, gaurav bagga
<gaurav.v.bagga-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:
> Hi all,
>
> i have a situation where i ask user a question and i dont want a
user to
> reply to it more than once,i dont have a login system so i
> am thinking of keeping track of a user by ip address.
>
> how can i get remote ip in rails??
>
> Thanks in advance
>
> regards
> gaurav
>
> >
>
--
Carl Woodward
0412218979
cjwoodward-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
--
Untitled Document
John
Ward
Technical
Director
-->
Cengal
Docklands Innovation Park
Mobile: +353 87 9166003
128-130 East Wall Road
Tel: +353 1 2401324
Dublin 3
Skype: ward.john
www.cengal.com
john.ward-GYWiJG/7GPbQT0dZR+AlfA@public.gmane.org
--~--~---------~--~----~------------~-------~--~----~
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
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---