質問編集履歴
1
試したこと、補足情報追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -172,14 +172,156 @@
|
|
172
172
|
|
173
173
|
|
174
174
|
|
175
|
+
```
|
176
|
+
|
177
|
+
routes.rb
|
178
|
+
|
179
|
+
|
180
|
+
|
181
|
+
Rails.application.routes.draw do
|
182
|
+
|
183
|
+
|
184
|
+
|
185
|
+
|
186
|
+
|
187
|
+
devise_for :users, controllers: {
|
188
|
+
|
189
|
+
registrations: "users/registrations",
|
190
|
+
|
191
|
+
}
|
192
|
+
|
193
|
+
|
194
|
+
|
195
|
+
|
196
|
+
|
197
|
+
devise_scope :user do
|
198
|
+
|
199
|
+
post 'users/guest_sign_in', to: 'users/sessions#new_guest'
|
200
|
+
|
201
|
+
end
|
202
|
+
|
203
|
+
|
204
|
+
|
205
|
+
root to: "concretes#index"
|
206
|
+
|
207
|
+
|
208
|
+
|
209
|
+
resource :concretes, only: [:show]
|
210
|
+
|
211
|
+
|
212
|
+
|
213
|
+
resources :users, only: [:show,:edit]
|
214
|
+
|
215
|
+
|
216
|
+
|
217
|
+
resources :ways do
|
218
|
+
|
219
|
+
collection do
|
220
|
+
|
221
|
+
get 'search'
|
222
|
+
|
223
|
+
end
|
224
|
+
|
225
|
+
resources :likes, only: [:create, :destroy]
|
226
|
+
|
227
|
+
resources :waycomments, only: [:create, :destroy]
|
228
|
+
|
229
|
+
end
|
230
|
+
|
231
|
+
|
232
|
+
|
233
|
+
resources :questions do
|
234
|
+
|
235
|
+
collection do
|
236
|
+
|
237
|
+
get 'search'
|
238
|
+
|
239
|
+
end
|
240
|
+
|
241
|
+
resources :choices, only: [:index,:create]
|
242
|
+
|
243
|
+
end
|
244
|
+
|
245
|
+
|
246
|
+
|
247
|
+
|
248
|
+
|
249
|
+
resources :answers do
|
250
|
+
|
251
|
+
collection do
|
252
|
+
|
253
|
+
get 'search'
|
254
|
+
|
255
|
+
end
|
256
|
+
|
257
|
+
resources :responses, only: [:create]
|
258
|
+
|
259
|
+
end
|
260
|
+
|
261
|
+
|
262
|
+
|
263
|
+
|
264
|
+
|
265
|
+
resources :words do
|
266
|
+
|
267
|
+
collection do
|
268
|
+
|
269
|
+
get 'search'
|
270
|
+
|
271
|
+
end
|
272
|
+
|
273
|
+
end
|
274
|
+
|
275
|
+
|
276
|
+
|
277
|
+
end
|
278
|
+
|
279
|
+
|
280
|
+
|
281
|
+
```
|
282
|
+
|
283
|
+
|
284
|
+
|
175
285
|
### 試したこと
|
176
286
|
|
287
|
+
「tail -f production.log」を打ったところActiveRecord::RecordNotFound (Couldn't find User with 'id'=guest_sign_in):と表示されているがローカル環境では問題なく作動しています。
|
288
|
+
|
177
289
|
|
178
290
|
|
179
291
|
|
180
292
|
|
181
293
|
### 補足情報(FW/ツールのバージョンなど)
|
182
294
|
|
183
|
-
|
295
|
+
●バックエンド
|
296
|
+
|
184
|
-
|
297
|
+
・ruby 2.6.5
|
298
|
+
|
299
|
+
・Rails 6.1.0
|
300
|
+
|
301
|
+
・MySQL 5.6.50
|
302
|
+
|
303
|
+
●フロントエンド
|
304
|
+
|
305
|
+
・HTML / CSS
|
306
|
+
|
307
|
+
●開発環境
|
308
|
+
|
309
|
+
・VScode
|
310
|
+
|
311
|
+
・RuboCop
|
312
|
+
|
313
|
+
●バージョン管理
|
314
|
+
|
315
|
+
・git、github
|
316
|
+
|
317
|
+
●インフラ
|
318
|
+
|
319
|
+
・AWS(S3,EC2,ROUTE53,IAM)
|
320
|
+
|
185
|
-
|
321
|
+
・Nginx/Unicorn
|
322
|
+
|
323
|
+
●テスト
|
324
|
+
|
325
|
+
・Rspec
|
326
|
+
|
327
|
+
・FactoryBot
|