質問編集履歴
2
routes.rbの部分を載せ直しました
test
CHANGED
File without changes
|
test
CHANGED
@@ -164,46 +164,104 @@
|
|
164
164
|
|
165
165
|
(rails routeの結果がこちらです)
|
166
166
|
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
users/sessions#
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
users/sessions#new_guest
|
178
|
-
|
179
|
-
new_user_session GET /users/sign_in(.:format)
|
180
|
-
|
181
|
-
users/sessions#
|
182
|
-
|
183
|
-
user_session
|
184
|
-
|
185
|
-
user
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
users/sess
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
167
|
+
|
168
|
+
|
169
|
+
root GET / static_pages#home
|
170
|
+
|
171
|
+
home GET /home(.:format) static_pages#home
|
172
|
+
|
173
|
+
sign_in GET /sign_in(.:format) users/sessions#new
|
174
|
+
|
175
|
+
sign_out DELETE /sign_out(.:format) users/sessions#destroy
|
176
|
+
|
177
|
+
users_guest_sign_in POST /users/guest_sign_in(.:format) users/sessions#new_guest
|
178
|
+
|
179
|
+
new_user_session GET /users/sign_in(.:format) users/sessions#new
|
180
|
+
|
181
|
+
user_session POST /users/sign_in(.:format) users/sessions#create
|
182
|
+
|
183
|
+
destroy_user_session DELETE /users/sign_out(.:format) users/sessions#destroy
|
184
|
+
|
185
|
+
user_twitter_omniauth_authorize GET|POST /users/auth/twitter(.:format) omniauth_callbacks#passthru
|
186
|
+
|
187
|
+
user_twitter_omniauth_callback GET|POST /users/auth/twitter/callback(.:format) omniauth_callbacks#twitter
|
188
|
+
|
189
|
+
new_user_password GET /users/password/new(.:format) devise/passwords#new
|
190
|
+
|
191
|
+
edit_user_password GET /users/password/edit(.:format) devise/passwords#edit
|
192
|
+
|
193
|
+
user_password PATCH /users/password(.:format) devise/passwords#update
|
194
|
+
|
195
|
+
PUT /users/password(.:format) devise/passwords#update
|
196
|
+
|
197
|
+
POST /users/password(.:format) devise/passwords#create
|
198
|
+
|
199
|
+
cancel_user_registration GET /users/cancel(.:format) users/registrations#cancel
|
200
|
+
|
201
|
+
new_user_registration GET /users/sign_up(.:format) users/registrations#new
|
202
|
+
|
203
|
+
edit_user_registration GET /users/edit(.:format) users/registrations#edit
|
204
|
+
|
205
|
+
user_registration PATCH /users(.:format) users/registrations#update
|
206
|
+
|
207
|
+
PUT /users(.:format) users/registrations#update
|
208
|
+
|
209
|
+
DELETE /users(.:format) users/registrations#destroy
|
210
|
+
|
211
|
+
POST /users(.:format) users/registrations#create
|
212
|
+
|
213
|
+
new_user_confirmation GET /users/confirmation/new(.:format) devise/confirmations#new
|
214
|
+
|
215
|
+
user_confirmation GET /users/confirmation(.:format) devise/confirmations#show
|
216
|
+
|
217
|
+
POST /users/confirmation(.:format) devise/confirmations#create
|
218
|
+
|
219
|
+
users GET /users(.:format) users#index
|
220
|
+
|
221
|
+
POST /users(.:format) users#create
|
222
|
+
|
223
|
+
new_user GET /users/new(.:format) users#new
|
224
|
+
|
225
|
+
edit_user GET /users/:id/edit(.:format) users#edit
|
226
|
+
|
227
|
+
user GET /users/:id(.:format) users#show
|
228
|
+
|
229
|
+
PATCH /users/:id(.:format) users#update
|
230
|
+
|
231
|
+
PUT /users/:id(.:format) users#update
|
232
|
+
|
233
|
+
DELETE /users/:id(.:format) users#destroy
|
234
|
+
|
235
|
+
microposts GET /microposts(.:format) microposts#index
|
236
|
+
|
237
|
+
POST /microposts(.:format) microposts#create
|
238
|
+
|
239
|
+
new_micropost GET /microposts/new(.:format) microposts#new
|
240
|
+
|
241
|
+
edit_micropost GET /microposts/:id/edit(.:format) microposts#edit
|
242
|
+
|
243
|
+
micropost GET /microposts/:id(.:format) microposts#show
|
244
|
+
|
245
|
+
PATCH /microposts/:id(.:format) microposts#update
|
246
|
+
|
247
|
+
PUT /microposts/:id(.:format) microposts#update
|
248
|
+
|
249
|
+
DELETE /microposts/:id(.:format) microposts#destroy
|
250
|
+
|
251
|
+
```
|
252
|
+
|
253
|
+
|
254
|
+
|
255
|
+
|
256
|
+
|
257
|
+
エラー画面にてパラメーターが{"id"=>"guest_sign_in"}と表示されていることからも
|
202
258
|
|
203
259
|
ルーティングが正しく設定できていないように思いました。
|
204
260
|
|
205
261
|
|
206
262
|
|
263
|
+
|
264
|
+
|
207
265
|
お手数おかけしますがご回答よろしくおねがいします。
|
208
266
|
|
209
267
|
|
1
routes.rbのコメント部分を削除しました
test
CHANGED
File without changes
|
test
CHANGED
@@ -42,8 +42,6 @@
|
|
42
42
|
|
43
43
|
get '/home', to:'static_pages#home'
|
44
44
|
|
45
|
-
# get 'user', to: 'users#show'
|
46
|
-
|
47
45
|
|
48
46
|
|
49
47
|
devise_scope :user do
|