<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>sonata30</author_name>
  <author_url>https://blog.hatena.ne.jp/sonata30/</author_url>
  <blog_title>my_back_pages</blog_title>
  <blog_url>https://shodan.hatenablog.jp/</blog_url>
  <categories>
    <anon>Rails</anon>
  </categories>
  <description>タイトル通りです。 --force-pluralオプションを使用して複数形を使ったモデル名のscaffoldを行う rails g scaffold JazzCafes name:string --force-pluralを実行。 ポイント --force-pluralオプションを使ったので、モデルのファイル名が複数形のapp/models/jazz_cafes.rbになっている。 指定しないと単数系のjazz_cafe.rbとなる。 ❯ rails g scaffold JazzCafes name:string --force-plural invoke active_record cre…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fshodan.hatenablog.jp%2Fentry%2F2024%2F04%2F19%2F135433&quot; title=&quot;【Rails】rails g コマンドで --force-plural オプションを使用した際の生成物を rails destroy コマンドで削除するときは、同じオプションを指定する必要がある - my_back_pages&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>2024-04-19 13:54:33</published>
  <title>【Rails】rails g コマンドで --force-plural オプションを使用した際の生成物を rails destroy コマンドで削除するときは、同じオプションを指定する必要がある</title>
  <type>rich</type>
  <url>https://shodan.hatenablog.jp/entry/2024/04/19/135433</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
