回答編集履歴
1
あ
test
CHANGED
@@ -9,6 +9,16 @@
|
|
9
9
|
```
|
10
10
|
|
11
11
|
としてください。
|
12
|
+
|
13
|
+
注意、has_oneの時もwhere内は複数形です。
|
14
|
+
|
15
|
+
```ruby
|
16
|
+
|
17
|
+
@comic = Comic.joins(:genre).where(:genres => "dozinshi")
|
18
|
+
|
19
|
+
```
|
20
|
+
|
21
|
+
databaseのtable名がそのまま適用されると覚えてください
|
12
22
|
|
13
23
|
|
14
24
|
|