<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>mat5ukawa</author_name>
  <author_url>https://blog.hatena.ne.jp/mat5ukawa/</author_url>
  <blog_title>現場ログ</blog_title>
  <blog_url>https://mat5ukawa.hateblo.jp/</blog_url>
  <categories>
    <anon>Rails</anon>
  </categories>
  <description>私なりの解釈 mass assignment #=&gt; assign すべきではない物もしてしまう仕組み及び方法 strong parameters #=&gt; mass assignment を防ぐ手段 以下、詳しく 前置き 例えば User モデル(権限つき)の attribute が次の通りであるとする name:string, email:string, admin:boolean update_attributes の方法は 例えば update メソッド内で 今まで(Rails3 系) params[:user] #=&gt; {name: 'matsu', email: 'matsu@mat…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmat5ukawa.hateblo.jp%2Fentry%2F2013%2F12%2F28%2F124551&quot; title=&quot;mass assignment と strong parameters - 現場ログ&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>2013-12-28 12:45:51</published>
  <title>mass assignment と strong parameters</title>
  <type>rich</type>
  <url>https://mat5ukawa.hateblo.jp/entry/2013/12/28/124551</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
