質問編集履歴
1
追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -21,3 +21,59 @@
|
|
21
21
|
|
22
22
|
|
23
23
|
これを解決する方法がなかなか見つからず、ご教示願います。
|
24
|
+
|
25
|
+
|
26
|
+
|
27
|
+
```rb
|
28
|
+
|
29
|
+
ActiveAdmin.register User do
|
30
|
+
|
31
|
+
menu label: "ユーザー"
|
32
|
+
|
33
|
+
permit_params :username, :email, :password, :confirmation_token
|
34
|
+
|
35
|
+
|
36
|
+
|
37
|
+
index do
|
38
|
+
|
39
|
+
column :id
|
40
|
+
|
41
|
+
column "ユーザー名", :username
|
42
|
+
|
43
|
+
column "メースアドレス", :email
|
44
|
+
|
45
|
+
column "作成日時", :created_at
|
46
|
+
|
47
|
+
column "トークン", :confirmation_token
|
48
|
+
|
49
|
+
actions
|
50
|
+
|
51
|
+
end
|
52
|
+
|
53
|
+
|
54
|
+
|
55
|
+
permit_params :username, :email, :password
|
56
|
+
|
57
|
+
form do |f|
|
58
|
+
|
59
|
+
f.inputs do
|
60
|
+
|
61
|
+
f.input :username
|
62
|
+
|
63
|
+
f.input :email
|
64
|
+
|
65
|
+
f.input :password
|
66
|
+
|
67
|
+
end
|
68
|
+
|
69
|
+
f.actions
|
70
|
+
|
71
|
+
end
|
72
|
+
|
73
|
+
|
74
|
+
|
75
|
+
end
|
76
|
+
|
77
|
+
|
78
|
+
|
79
|
+
```
|