Using the patch HTTP method in Ruby
If you use patches, you can see only the parts of the changes that were updated in the background;
Started PATCH "/ads/5/update" for:: 1 @ 2017-04-20 20:12:40 +0800processing by Adscontroller#update as HTML Parameter S: {"UTF8" + "?", "Authenticity_token" = "bonqooqydwjakhet09i/kho52m2t7cxgplvgkjqw4ic2v5nzieobtk8va7/" sb5hdmqkhfla/q32stanjtqj1vg== "," ad "=>{" name "=" E1 "," description "=" E "," price "=" 5.0 "," seller_id "= > "5", "email" = "E", "img_url" = "e"}, "Commit" = "Update1", "id" = "5"} Ad Load (1.0ms) SELECT "Ads" . * from "ads" WHERE "ads". " id "=? LIMIT? [["ID", 5], ["LIMIT", 1]] (1.0ms) BEGIN TRANSACTION SQL (1.0ms) UPDATE "ads" SET "name" =?, "updated_at" =? WHERE "Ads". " id "=? [["Name", "E1"], ["Updated_at", 2017-04-20 12:12:40 UTC], ["id", 5]] (154.2ms) Commit transactionredirected to http://localhost:3000/ads/5Completed 302 Found in 165ms (activerecord:157.2ms)
Using the patch HTTP method in Ruby