jquery - How do you access data in a Ruby on Rails controller that is POSTed via an AJAX request? -



jquery - How do you access data in a Ruby on Rails controller that is POSTed via an AJAX request? -

i'm sending ajax request , posting json info server. how access info in controller (i'm using ruby on rails).

it should trivial:

data = activesupport::json::decode(params[:param_with_json_string])

jquery ruby-on-rails ruby ajax ruby-on-rails-3

Comments

Popular posts from this blog

c# - Move local mssql database to webhosted MYSQL -

java - How to pass parameters between Request-Scoped Controllers? -

string - what is the difference between "some" == "some\0" and strcmp("some","some\0") in c++? -