I am pretty new to ruby and sinatra but basically I have this route:
put \'/user_list/:user_id\' do
puts request.params[\"model\"]
end
and
The standard Hash treats strings and symbols differently, and I'd be willing to bet that's what's happening in this case.
Use request.params["model"]["password"]
to get the password.
The exception to that is when working with a HashWithIndifferentAccess which is part of ActiveSupport. For hashes of that type, either strings or symbols can be used to access the same elements.