Displaying 1 result from an estimated 1 matches for "22ch".
Did you mean:
2ch
2009 Jul 05
2
JSON data not decoded in Rails
...)
debugger
my_json = ActiveSupport::JSON.decode(params["_json"])
render :text => my_json
end
I''ve checked with the debugger that the json data that is sent to the
server is the following:
{"_json"=>"%7B%22name%22%3A%20%22Violet%22%2C%20%22occupation%22%3A%20%22charact
er%22%2C%20%22age%22%3A%2025%7D", "action"=>"change",
"controller"=>"pages"}
Can anyone help me?
Thanks.
Best regards,
Migrate
--
Posted via http://www.ruby-forum.com/.