質問編集履歴
1
修正しました。
title
CHANGED
File without changes
|
body
CHANGED
@@ -9,7 +9,7 @@
|
|
9
9
|
コントローラー
|
10
10
|
|
11
11
|
@notices = Notice.find_by_sql("SQL")
|
12
|
-
ActiveRecord::Associations::Preloader.new.preload(@notices, object: [:user, :
|
12
|
+
ActiveRecord::Associations::Preloader.new.preload(@notices, object: [:user, :adminuser])
|
13
13
|
```
|
14
14
|
|
15
15
|
```ここに言語を入力
|
@@ -25,7 +25,7 @@
|
|
25
25
|
end
|
26
26
|
|
27
27
|
class Article < ActiveRecord::Base
|
28
|
-
belongs_to :
|
28
|
+
belongs_to :adminuser
|
29
29
|
end
|
30
30
|
```
|
31
31
|
|