<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>halflife</author_name>
  <author_url>https://blog.hatena.ne.jp/halflife/</author_url>
  <blog_title>Halflife</blog_title>
  <blog_url>https://halflife.hatenadiary.org/</blog_url>
  <categories>
    <anon>Ruby</anon>
    <anon>Rails</anon>
  </categories>
  <description>はじめてRailsに触ったとき一番「落とし穴」と感じたのがmass assignment だった。 たとえば下のような、attr_accessible を忘れたモデルの会員制ブログアプリがあって、 class Entry belongs_to :user end class User has_many :entries end scaffold で自動生成されるまま def update @entry = Entry.find(params[:id]) if @entry.update_attributes(params[:entry]) ... みたいにmass assignmentを使って…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fhalflife.hatenadiary.org%2Fentry%2F20081006%2F1223302382&quot; title=&quot; mass assignment を安全にするプラグイン？ - Halflife&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>2008-10-06 23:13:02</published>
  <title> mass assignment を安全にするプラグイン？</title>
  <type>rich</type>
  <url>https://halflife.hatenadiary.org/entry/20081006/1223302382</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
