質問編集履歴
1
routes.rbのコードを再度貼り付けました。
test
CHANGED
File without changes
|
test
CHANGED
@@ -28,7 +28,9 @@
|
|
28
28
|
|
29
29
|
Rails.application.routes.draw do
|
30
30
|
|
31
|
-
devise_for :users
|
31
|
+
devise_for :users,
|
32
|
+
|
33
|
+
controllers: { registrations: 'registrations' }
|
32
34
|
|
33
35
|
|
34
36
|
|
@@ -42,19 +44,19 @@
|
|
42
44
|
|
43
45
|
|
44
46
|
|
45
|
-
get '/users/:id', to: 'users#show',
|
47
|
+
get '/users/:id', to: 'users#show',as: 'user'
|
46
48
|
|
47
49
|
mount LetterOpenerWeb::Engine, at: "/letter_opener" if Rails.env.development?
|
48
50
|
|
49
51
|
resources :contacts
|
52
|
+
|
53
|
+
resources :posts, only: %i(new create index show)
|
50
54
|
|
51
55
|
|
52
56
|
|
53
57
|
|
54
58
|
|
55
59
|
end
|
56
|
-
|
57
|
-
|
58
60
|
|
59
61
|
```
|
60
62
|
|