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... >> p RAILS_GEM_VERSION "1.2.3" => nil >> Object.new.methods.include?('to_query') => false >> exit How do I add this method to my Rails installation?
on 2008-11-18 16:33
on 2008-11-18 16:49
> >> Object.new.methods.include?('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.
on 2008-11-18 18:22
Yes. Upgrading fixed it. Thanks!