質問編集履歴
1
RailsAdmin.config do |config|の部分を追加しました。
test
CHANGED
File without changes
|
test
CHANGED
@@ -5,3 +5,91 @@
|
|
5
5
|
というエラーがでてしまいました。
|
6
6
|
|
7
7
|
どこを直したらいいのでしょうか。ご教授ください。お願いします。
|
8
|
+
|
9
|
+
```ruby
|
10
|
+
|
11
|
+
RailsAdmin.config do |config|
|
12
|
+
|
13
|
+
|
14
|
+
|
15
|
+
### Popular gems integration
|
16
|
+
|
17
|
+
|
18
|
+
|
19
|
+
## == Devise ==
|
20
|
+
|
21
|
+
config.authenticate_with do
|
22
|
+
|
23
|
+
warden.authenticate! scope: :user
|
24
|
+
|
25
|
+
end
|
26
|
+
|
27
|
+
config.current_user_method(&:current_user)
|
28
|
+
|
29
|
+
|
30
|
+
|
31
|
+
## == CancanCan ==
|
32
|
+
|
33
|
+
config.authorize_with :cancancan
|
34
|
+
|
35
|
+
|
36
|
+
|
37
|
+
## == Pundit ==
|
38
|
+
|
39
|
+
# config.authorize_with :pundit
|
40
|
+
|
41
|
+
|
42
|
+
|
43
|
+
## == PaperTrail ==
|
44
|
+
|
45
|
+
# config.audit_with :paper_trail, 'User', 'PaperTrail::Version' # PaperTrail >= 3.0.0
|
46
|
+
|
47
|
+
|
48
|
+
|
49
|
+
### More at https://github.com/sferik/rails_admin/wiki/Base-configuration
|
50
|
+
|
51
|
+
|
52
|
+
|
53
|
+
## == Gravatar integration ==
|
54
|
+
|
55
|
+
## To disable Gravatar integration in Navigation Bar set to false
|
56
|
+
|
57
|
+
# config.show_gravatar = true
|
58
|
+
|
59
|
+
|
60
|
+
|
61
|
+
config.actions do
|
62
|
+
|
63
|
+
dashboard # mandatory
|
64
|
+
|
65
|
+
index # mandatory
|
66
|
+
|
67
|
+
new
|
68
|
+
|
69
|
+
export
|
70
|
+
|
71
|
+
bulk_delete
|
72
|
+
|
73
|
+
show
|
74
|
+
|
75
|
+
edit
|
76
|
+
|
77
|
+
delete
|
78
|
+
|
79
|
+
show_in_app
|
80
|
+
|
81
|
+
|
82
|
+
|
83
|
+
## With an audit adapter, you can add:
|
84
|
+
|
85
|
+
# history_index
|
86
|
+
|
87
|
+
# history_show
|
88
|
+
|
89
|
+
end
|
90
|
+
|
91
|
+
end
|
92
|
+
|
93
|
+
|
94
|
+
|
95
|
+
```
|