回答編集履歴
1
追記
test
CHANGED
@@ -39,3 +39,9 @@
|
|
39
39
|
MenuByUserType[current_user.user_type]
|
40
40
|
|
41
41
|
```
|
42
|
+
|
43
|
+
|
44
|
+
|
45
|
+
追記
|
46
|
+
|
47
|
+
ユーザタイプをUserに作るとき、type とするのは避けたほうがよいかも。curent_user.type ってなってそこは美しいのですが、type ってRails の予約語になっているので、困ることが起きる可能性があります。
|