質問編集履歴
3
routes.rbの記述
test
CHANGED
File without changes
|
test
CHANGED
@@ -220,6 +220,11 @@
|
|
220
220
|
POST /users(.:format) devise/registrations#create
|
221
221
|
|
222
222
|
```
|
223
|
+
```routes.rb
|
224
|
+
Rails.application.routes.draw do
|
225
|
+
devise_for :users
|
226
|
+
end
|
227
|
+
```
|
223
228
|
|
224
229
|
### 試したこと
|
225
230
|
rails routesでパスを確認したが[POST] "/users/sign_up"がなかった
|
2
rails routesの記入
test
CHANGED
File without changes
|
test
CHANGED
@@ -202,7 +202,22 @@
|
|
202
202
|
```
|
203
203
|
|
204
204
|
```ターミナル
|
205
|
+
Prefix Verb URI Pattern Controller#Action
|
206
|
+
new_user_session GET /users/sign_in(.:format) devise/sessions#new
|
207
|
+
user_session POST /users/sign_in(.:format) devise/sessions#create
|
208
|
+
destroy_user_session DELETE /users/sign_out(.:format) devise/sessions#destroy
|
209
|
+
new_user_password GET /users/password/new(.:format) devise/passwords#new
|
210
|
+
edit_user_password GET /users/password/edit(.:format) devise/passwords#edit
|
211
|
+
user_password PATCH /users/password(.:format) devise/passwords#update
|
205
|
-
|
212
|
+
PUT /users/password(.:format) devise/passwords#update
|
213
|
+
POST /users/password(.:format) devise/passwords#create
|
214
|
+
cancel_user_registration GET /users/cancel(.:format) devise/registrations#cancel
|
215
|
+
new_user_registration GET /users/sign_up(.:format) devise/registrations#new
|
216
|
+
edit_user_registration GET /users/edit(.:format) devise/registrations#edit
|
217
|
+
user_registration PATCH /users(.:format) devise/registrations#update
|
218
|
+
PUT /users(.:format) devise/registrations#update
|
219
|
+
DELETE /users(.:format) devise/registrations#destroy
|
220
|
+
POST /users(.:format) devise/registrations#create
|
206
221
|
|
207
222
|
```
|
208
223
|
|
1
エラーメッセージの入力欄を間違えていた
test
CHANGED
File without changes
|
test
CHANGED
@@ -14,8 +14,6 @@
|
|
14
14
|
|
15
15
|
```
|
16
16
|
エラーメッセージ
|
17
|
-
```
|
18
|
-
|
19
17
|
Routing Error
|
20
18
|
No route matches [POST] "/users/sign_up"
|
21
19
|
Rails.root: /Users/admin/dogapp-38254
|
@@ -25,6 +23,8 @@
|
|
25
23
|
Routes match in priority from top to bottom
|
26
24
|
|
27
25
|
https://gyazo.com/8d3167bdbb5a8b185542be274a5fd727
|
26
|
+
|
27
|
+
```
|
28
28
|
|
29
29
|
```ruby
|
30
30
|
<%= render "devise/shared/second-header"%>
|