Thanks Rafi for your reply but can I use request.remore_addr directly like
ip = request.remote_addr in ruby. it is saying undefined request local
vairable.


On Tue, Jun 18, 2013 at 12:09 PM, Rafi A <[email protected]> wrote:

> How about using *request.remote_addr ?*
>
>
> Regards,
> Seeni Rafiyullah Khan A,
> <[email protected]>**
>
>
> On Tue, Jun 18, 2013 at 1:56 AM, Khan <[email protected]>wrote:
>
>> Hi all, I want to capture IP address in ruby 1.8.7 can any one help me
>> out how to capture IP.
>>
>>
>>
>> Thanks in advance
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Ruby on Rails: Talk" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected].
>> To post to this group, send email to [email protected].
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/rubyonrails-talk/7a0ea49a-cede-4bd1-b797-26f0b8c630c9%40googlegroups.com
>> .
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>>
>>
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Ruby on Rails: Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/rubyonrails-talk/CA%2BfXU%2B3ngJR57FXUoHyVWPWPLfiM6zzMv%2BqRSo94Fxs1TU-Z2g%40mail.gmail.com
> .
>
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CABvThQfbk2%2Be1Pi3tQgPDfgMPaWaFAEPd%2BYgs7hgRWp3MYPJPg%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to