Rails の Model は常に単数名詞、そして Controller はその名詞の複数形という規則がありますが、Model が”Child"などの不規則変化名詞だった時に Controller 名はChildren なのか、Childs なのかがわからなかったので調べました。
答え
プログラム的には当然簡単に処理できる Childs だと思ったけども実際はちゃんと不規則変化にも対応してるらしく Children が正解です。
その他の不規則名詞
他の不規則名詞は
https://github.com/rails/rails/blob/4-0-0/activesupport/lib/active_support/inflections.rb
に載っているんですが、
inflect.irregular('person', 'people') inflect.irregular('man', 'men') inflect.irregular('child', 'children') inflect.irregular('sex', 'sexes') inflect.irregular('move', 'moves') inflect.irregular('cow', 'kine') inflect.irregular('zombie', 'zombies')
zombie って不規則名詞なの…?
cow→kine の変化はそもそも英単語がわかりませんでした、、
Zombie が不規則名詞の理由 ([2013/12/14] 追記)
単数形から複数形への変化は規則通りですが、複数形から単数形への変化 zombies -> zombie が不規則で、規則通り変化させてしまうと zombies -> zomby になってしまうから不規則名詞らしいです。英語は難しいですね。
情報元
[Model and Controller's naming rule for irregular noun in Rails – Stack Overflow][1]