frankjmattia-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2008-Jul-13 12:24 UTC
ActiveResource problem with get req.
since i can not find any documentation on this stuff that helps any i''m taking a stab at doing this... @gapiTranslate = ActiveResource::Connection.new("http:// translate.google.com", ActiveResource::Formats[:json]) @gapiTranslate.get("/translate_t?q=hello&v=1.0&sl=en&tl=it") and it keeps returning INVALID JSON STRING in the browser... am i making the request to good incorrectly or something... is this even the right way to achieve what i hope it looks like im trying to do? - FJM --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
frankjmattia-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2008-Jul-15 22:55 UTC
Re: ActiveResource problem with get req.
hmm.. i mean ''google''... not good. c''mon no takers on this? hehehe.. any kinda pointers to even good docs on this stuff? On Jul 13, 8:24 am, "frankjmat...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org" <frankjmat...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> since i can not find any documentation on this stuff that helps any > i''m taking a stab at doing this... > > @gapiTranslate = ActiveResource::Connection.new("http:// > translate.google.com", ActiveResource::Formats[:json]) > @gapiTranslate.get("/translate_t?q=hello&v=1.0&sl=en&tl=it") > > and it keeps returning INVALID JSON STRING in the browser... am i > making the request to good incorrectly or something... is this even > the right way to achieve what i hope it looks like im trying to do? > > - FJM--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---