All,
I''m having a weird issue with posted parameters in Rails 3.1.0.
This is only happening in production and not in development.
I have confirmed that when making a post, parameters are passed to the
server as:
utf8=%E2%9C
%93&authenticity_token=jOn16Uw3oUBPQfX02nt1IN8muZf150nTt24Ic4JgPvY
%3D&alert%5Btitle%5D=http%3A%2F%2Fwww&alert%5Bheadline%5D=%26headline
Which looks like the following when decoded:
utf8=✓&authenticity_token=jOn16Uw3oUBPQfX02nt1IN8muZf150nTt24Ic4JgPvY=&alert[title]=http://
www&alert[headline]=&headline
However, on the server side, the parameters are received as:
{"utf8"=>"✓",
"authenticity_token"=>"jOn16Uw3oUBPQfX02nt1IN8muZf150nTt24Ic4JgPvY=",
"alert"=>{"status"=>"published",
"title"=>"http://www",
"headline"=>"&headline"}
Obviously, I do not wish to store the encoded values.
I''m using Rails 3.1.0, unicorn, and Nginx. I have also tried this on a
Rails 3.1.0, passenger, apache stack and had the same issue. In both
cases, I''m using 1.9.2p290.
I''d appreciate any advice. Is there a new production setting that
I''m
not aware of?
I''ve posted the same issue on stackoverflow here:
http://stackoverflow.com/questions/7476404/parameter-encoding-problem-with-rails
--
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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@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.