<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>d4-1977</author_name>
  <author_url>https://blog.hatena.ne.jp/d4-1977/</author_url>
  <blog_title>めも帖</blog_title>
  <blog_url>https://d4-1977.hatenablog.com/</blog_url>
  <categories>
    <anon>Ruby on Rails</anon>
  </categories>
  <description>Rails 4 で、has_many のアソシエーション（多対多）が設定してあるときに、関連するモデルの保存できませんでした。 なんで？と思い調べてみました。Strong Parameters が怪しいかなあ？とは思っていたのですが、設定したのに動かない。 最初に設定した方法 def plan_params params.require(:plan).permit(:name, foo_ids) end やってみると... Unpermitted parameters: foo_ids エラーが出てる。無許可？ 調べてみると、どうも、配列の場合は空の配列を設定するらしい 配列に対応した Str…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fd4-1977.hatenablog.com%2Fentry%2F2014%2F01%2F31%2F230226&quot; title=&quot;Rails4 の has_many  時に 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>2014-01-31 23:02:26</published>
  <title>Rails4 の has_many  時に Strong Parameters はまる</title>
  <type>rich</type>
  <url>https://d4-1977.hatenablog.com/entry/2014/01/31/230226</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
