ip = request.remote_addr
NameError: undefined local variable or method `request' for
#<Object:0xb785f950>
    from (irb):1
    from :0
Which I am getting in irb.


On Tue, Jun 18, 2013 at 12:40 PM, Loganathan Sellapa <
[email protected]> wrote:

> Can you copy your ruby script ?
>
> Regards,
> Logan
>
> Sent from mobile device
> On 18 Jun 2013 12:35, "sameena Khan" <[email protected]> wrote:
>
>> 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.
>>
>>
>>
>  --
> 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/CAD_i5MEuNpDEy4AgwwZjzk19ooBvjcaAO8_wF8VL4vsFrSh8JQ%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/CABvThQdx%2BGknV%2B9JP7cxqyLYST67r53oCZ0gBxGJh7MDa7%3Dygg%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to