<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>a666666</author_name>
  <author_url>https://blog.hatena.ne.jp/a666666/</author_url>
  <blog_title>@kyanny's blog</blog_title>
  <blog_url>https://blog.kyanny.me/</blog_url>
  <categories>
  </categories>
  <description>アレがどのように実現されてるのか、あとネストしたハッシュのキーにあたる文字列は単数形になるものなのか複数形になるものなのか、理解しておらず不思議がっていたら同僚が調べてくれた。復習がてらメモ。 結論 一連の仕事は ActionController::ParamsWrapper がやっている ネストされたハッシュの root key の名前は（おおざっぱにいうと）コントローラ名から切り出したモデル名の lower case になる。つまり（ほぼ）必ず singular （単数形）になると考えてよい。 参考コード1 参考コード2 以下、例。 コントローラとモデルの定義とルーティング class U…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.kyanny.me%2Fentry%2F2014%2F12%2F09%2F233000&quot; title=&quot;Rails が params をネストしてくれる仕組みは ActionController::ParamsWrapper が実現している - @kyanny&amp;#39;s blog&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-12-09 23:30:00</published>
  <title>Rails が params をネストしてくれる仕組みは ActionController::ParamsWrapper が実現している</title>
  <type>rich</type>
  <url>https://blog.kyanny.me/entry/2014/12/09/233000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
