回答編集履歴
1
テキスト追記
test
CHANGED
@@ -67,3 +67,35 @@
|
|
67
67
|
|
68
68
|
|
69
69
|
以上、参考になれば幸いです。
|
70
|
+
|
71
|
+
|
72
|
+
|
73
|
+
---
|
74
|
+
|
75
|
+
追記
|
76
|
+
|
77
|
+
|
78
|
+
|
79
|
+
上記 Railsガイドの説明文は、英語版では
|
80
|
+
|
81
|
+
|
82
|
+
|
83
|
+
```
|
84
|
+
|
85
|
+
4.3.2.3 :class_name
|
86
|
+
|
87
|
+
|
88
|
+
|
89
|
+
If the name of the other model cannot be derived from the association name,
|
90
|
+
|
91
|
+
you can use the :class_name option to supply the model name. For example,
|
92
|
+
|
93
|
+
if an author has many books, but the actual name of the model containing
|
94
|
+
|
95
|
+
books is Transaction, you'd set things up this way:
|
96
|
+
|
97
|
+
```
|
98
|
+
|
99
|
+
|
100
|
+
|
101
|
+
と書かれています。つまり、「関連名」は **association name** の和訳です。
|