<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>Ichiban</author_name>
  <author_url>https://blog.hatena.ne.jp/Ichiban/</author_url>
  <blog_title>Ichibanの日記</blog_title>
  <blog_url>https://ichiban.hatenadiary.org/</blog_url>
  <categories>
    <anon>Rails</anon>
  </categories>
  <description>ちょっとメモ．form_for の第１引数にインスタンスオブジェクトを渡す方式だとnested resourcesに対応してないっぽい．例えばusers/:user_id/projects/:project_idみたいなルートを考える． map.resources :users do |user| user.resources :projects end ./script/generate scaffoldで生成されたビューはform_forにインスタンスを渡す方式を取っているのでそのままだとエラーが起きる． 1) Error: test_should_create_project(Proje…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fichiban.hatenadiary.org%2Fentry%2F20081105%2F1225908616&quot; title=&quot; form_forとnested resources - Ichibanの日記&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-11-05 03:10:16</published>
  <title> form_forとnested resources</title>
  <type>rich</type>
  <url>https://ichiban.hatenadiary.org/entry/20081105/1225908616</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
