Forum: Ruby on Rails undefined method `to_query'

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Ian (Guest)
on 2008-11-18 17:33
(Received via mailing list)
I'm trying to use a gem to access an API but I'm getting the message
=>  undefined method `to_query'

I go into the terminal and run...

=> nil
=> false
>> exit

How do I add this method to my Rails installation?
Mark T. (Guest)
on 2008-11-18 17:49
(Received via mailing list)
> >>'to_query')
> => false
> >> exit

You won't see it from IRB, because Rails extends Object with the
methods. Try it from within 'script/console" -- it works for me in
Rails 2.0.2 (not sure about 1.2.3--that's fairly outdated).

-- Mark.
Ian (Guest)
on 2008-11-18 19:22
(Received via mailing list)
Yes.  Upgrading fixed it.  Thanks!
This topic is locked and can not be replied to.