Hi guys, I''m writing a sinatra app that interfaces to a Rails core,
authenticating with OAuth and making requests to the main service.
I''m experiencing a weird behaviour and I hope that someone can give me
a clue about what''s happening here.
By inspecting request and response I noticed something very weird.
Sorry if this is long.
This is my request from Sinatra to Rails (only the query hash):
"rack.request.query_hash"=>{"contest"=>{"it"=>{"brief"=>"<p>Vi
lanciamo un contest originale, che avr\303\240 sviluppi professionali
interessanti per chi ne risulter\303\240 vincitore. (...)"}}}
This is how Rails handles it:
Parameters: {"it"=>"brief<p>Vi lanciamo un contest
originale, che avrÃ
sviluppi professionali interessanti per chi ne risulterà vincitore.
(...)"}
It basically flattens everything in there.
Maybe I''m mistaken and I''m doing something wrong (as usual),
but it
seems Rails has a problem here handling parameters in the correct way.
I also posted the same question to the OAuth gem ML, but by looking at
the code of the gem I don''t see anything strange.
ngw
--
Nicholas Wieland (ngw)
Zooppa CTO
911 Western Avenue, Suite 420
Seattle, WA 98104 US
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---