user.rb
def user_params
params.permit(:email, :password, :password_confirmation, :school_id, :student_id, :student_pwd, :user_logo)
end
Started POST "/users.json" for 192.168.18.127 at 2014-11-11 11:11:21 +0800
Processing by Users::RegistrationsController#create as JSON
Parameters: {"{\n \"password_confirmation\" : \"1111\",\n \"password\" : \"1111\",\n \"student_pwd\" : \"2123305\",\n \"email\" : \"[email protected]\",\n \"user_logo\" : \"uploads\\/97631607.jpg\",\n \"student_id\" : \"2123305\",\n \"school_id\" : 1\n}"=>"[FILTERED]"}
Unpermitted parameters: {
"password_confirmation" : "1111",
"password" : "1111",
"student_pwd" : "2123305",
"email" : "[email protected]",
"user_logo" : "uploads\/97631607.jpg",
"student_id" : "2123305",
"school_id" : 1
}, format
[1m[35m (0.1ms)[0m begin transaction
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
Completed 200 OK in 4ms (Views: 0.2ms | ActiveRecord: 0.1ms)
ios app 发送 json 过来是带\ 和 \n的,看上去解析出了问题,不知道该如何处理,还请各位指点下