Using curl to test Rails routes
问题 I have a model called users that I want to update using an API. The way I thought to do this is by creating an update route and plugging in code that does the updating. I created a test using RSpec and it seemed to work, however, I want to actually see the changed data in my database so I was trying to use curl to update my development database. I tried the command curl -X PUT -d "attribute1 = value1, attribute2 = value2" http://localhost:3000/users/1 but I got an error <html xmlns="http:/