Access Ruby hash variables
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 it returns the following {"password":"36494092d7d5682666ac04f62d624141","username":"nicholas","user_id":106,"firstname":"Nicholas","email":"nicholas@macpractice.com","is_admin":0,"lastname":"Rose","privileges":""} I am now having a hard time accessing values of each of those. It doesn't really seem to be in hash format so I can't really do request.params["model"][:password] It just returns nil.. I just need to know what I can do to access those variables, or