質問編集履歴
2
コードを追記しました。
test
CHANGED
File without changes
|
test
CHANGED
@@ -84,7 +84,7 @@
|
|
84
84
|
|
85
85
|
end
|
86
86
|
|
87
|
-
|
87
|
+
|
88
88
|
|
89
89
|
def after_sign_up_path_for(resource)
|
90
90
|
|
@@ -105,3 +105,29 @@
|
|
105
105
|
end
|
106
106
|
|
107
107
|
```
|
108
|
+
|
109
|
+
```
|
110
|
+
|
111
|
+
エラー画面
|
112
|
+
|
113
|
+
|
114
|
+
|
115
|
+
ActionController::UrlGenerationError in Users::RegistrationsController#new
|
116
|
+
|
117
|
+
No route matches {:action=>"show", :controller=>"users"}, missing required keys: [:id]
|
118
|
+
|
119
|
+
Extracted source (around line #24):
|
120
|
+
|
121
|
+
22
|
122
|
+
|
123
|
+
23 def after_sign_in_path_for(resource)
|
124
|
+
|
125
|
+
24 user_path
|
126
|
+
|
127
|
+
25 end
|
128
|
+
|
129
|
+
26
|
130
|
+
|
131
|
+
27 def after_sign_up_path_for(resource)
|
132
|
+
|
133
|
+
```
|
1
コードを追記しました。
test
CHANGED
File without changes
|
test
CHANGED
@@ -86,6 +86,14 @@
|
|
86
86
|
|
87
87
|
|
88
88
|
|
89
|
+
def after_sign_up_path_for(resource)
|
90
|
+
|
91
|
+
user_path
|
92
|
+
|
93
|
+
end
|
94
|
+
|
95
|
+
|
96
|
+
|
89
97
|
def after_sign_out_path_for(resource)
|
90
98
|
|
91
99
|
root_path
|