adding customized parameters to pass as json
问题 I am sending the parameters using post method to my rails server using this code in titanium- if (email.value != '' && password.value != '') { loginReq.open("POST","http://192.168.0.187:3000/users/sign_in"); var params = { email: email.value, password: password.value }; loginReq.send(params); } On rails server side I am getting this output on console - Parameters: {"password"=>"[FILTERED]", "email"=>"abcdefgh@gmail.com"} But I need the output like this - Parameters: {"user"=>{"email"=>