質問編集履歴
1
試したこと、補足情報追加
title
CHANGED
File without changes
|
body
CHANGED
@@ -85,9 +85,80 @@
|
|
85
85
|
</div>
|
86
86
|
```
|
87
87
|
|
88
|
+
```
|
89
|
+
routes.rb
|
90
|
+
|
91
|
+
Rails.application.routes.draw do
|
92
|
+
|
93
|
+
|
94
|
+
devise_for :users, controllers: {
|
95
|
+
registrations: "users/registrations",
|
96
|
+
}
|
97
|
+
|
98
|
+
|
99
|
+
devise_scope :user do
|
100
|
+
post 'users/guest_sign_in', to: 'users/sessions#new_guest'
|
101
|
+
end
|
102
|
+
|
103
|
+
root to: "concretes#index"
|
104
|
+
|
105
|
+
resource :concretes, only: [:show]
|
106
|
+
|
107
|
+
resources :users, only: [:show,:edit]
|
108
|
+
|
109
|
+
resources :ways do
|
110
|
+
collection do
|
111
|
+
get 'search'
|
112
|
+
end
|
113
|
+
resources :likes, only: [:create, :destroy]
|
114
|
+
resources :waycomments, only: [:create, :destroy]
|
115
|
+
end
|
116
|
+
|
117
|
+
resources :questions do
|
118
|
+
collection do
|
119
|
+
get 'search'
|
120
|
+
end
|
121
|
+
resources :choices, only: [:index,:create]
|
122
|
+
end
|
123
|
+
|
124
|
+
|
125
|
+
resources :answers do
|
126
|
+
collection do
|
127
|
+
get 'search'
|
128
|
+
end
|
129
|
+
resources :responses, only: [:create]
|
130
|
+
end
|
131
|
+
|
132
|
+
|
133
|
+
resources :words do
|
134
|
+
collection do
|
135
|
+
get 'search'
|
136
|
+
end
|
137
|
+
end
|
138
|
+
|
139
|
+
end
|
140
|
+
|
141
|
+
```
|
142
|
+
|
88
143
|
### 試したこと
|
144
|
+
「tail -f production.log」を打ったところActiveRecord::RecordNotFound (Couldn't find User with 'id'=guest_sign_in):と表示されているがローカル環境では問題なく作動しています。
|
89
145
|
|
90
146
|
|
91
147
|
### 補足情報(FW/ツールのバージョンなど)
|
92
|
-
|
148
|
+
●バックエンド
|
149
|
+
・ruby 2.6.5
|
150
|
+
・Rails 6.1.0
|
151
|
+
・MySQL 5.6.50
|
152
|
+
●フロントエンド
|
153
|
+
・HTML / CSS
|
154
|
+
●開発環境
|
155
|
+
・VScode
|
156
|
+
・RuboCop
|
157
|
+
●バージョン管理
|
158
|
+
・git、github
|
159
|
+
●インフラ
|
160
|
+
・AWS(S3,EC2,ROUTE53,IAM)
|
93
|
-
|
161
|
+
・Nginx/Unicorn
|
162
|
+
●テスト
|
163
|
+
・Rspec
|
164
|
+
・FactoryBot
|