<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>nkgt_chkonk</author_name>
  <author_url>https://blog.hatena.ne.jp/nkgt_chkonk/</author_url>
  <blog_title>猫型の蓄音機は 1 分間に 45 回にゃあと鳴く</blog_title>
  <blog_url>https://nekogata.hatenablog.com/</blog_url>
  <categories>
    <anon>programming</anon>
    <anon>Ruby</anon>
    <anon>Rails</anon>
  </categories>
  <description>背景 Rails には MethodOverride の仕組みがあって、これはなにかっていうと、HTTP method が POST の場合でも _method=PUT とかそういうパラメーターを付けてリクエストしてあげると Rails のレイヤーではそのリクエストを PUT として扱ってくれるやつです。ブラウザの form が GET と POST しかサポートしてないけど疑似的に RESTfull にアプリケーションを作りたいみたいなときに重宝するやつですね。 さて、このMethodOverrideですが、content-typeが &quot;application/x-www-form-urle…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fnekogata.hatenablog.com%2Fentry%2F2014%2F05%2F16%2F232504&quot; title=&quot;Rails で content-type が application/json などの場合、MethodOverrideが効かない件 - 猫型の蓄音機は 1 分間に 45 回にゃあと鳴く&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2014-05-16 23:25:04</published>
  <title>Rails で content-type が application/json などの場合、MethodOverrideが効かない件</title>
  <type>rich</type>
  <url>https://nekogata.hatenablog.com/entry/2014/05/16/232504</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
