Using the patch HTTP method in Ruby

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.