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>> exitHow do I add this method to my Rails installation? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
> >> Object.new.methods.include?(''to_query'') > => false > >> exitYou 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. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Yes. Upgrading fixed it. Thanks! On Nov 18, 9:47 am, Mark Thomas <m...-gkTqyYPWbQbz1n+OaKNE4w@public.gmane.org> wrote:> > >> 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.--~--~---------~--~----~------------~-------~--~----~ 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@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---