質問編集履歴
1
rails routesの結果を追加しました。
test
CHANGED
@@ -1 +1 @@
|
|
1
|
-
Rails
|
1
|
+
Rails deviseのcontroller内でif文を使いたい
|
test
CHANGED
@@ -190,6 +190,86 @@
|
|
190
190
|
|
191
191
|
|
192
192
|
|
193
|
+
rails routes
|
194
|
+
|
195
|
+
```ruby
|
196
|
+
|
197
|
+
Prefix Verb URI Pattern Controller#Action
|
198
|
+
|
199
|
+
companies GET /companies(.:format) companies#index
|
200
|
+
|
201
|
+
POST /companies(.:format) companies#create
|
202
|
+
|
203
|
+
new_company GET /companies/new(.:format) companies#new
|
204
|
+
|
205
|
+
edit_company GET /companies/:id/edit(.:format) companies#edit
|
206
|
+
|
207
|
+
company GET /companies/:id(.:format) companies#show
|
208
|
+
|
209
|
+
PATCH /companies/:id(.:format) companies#update
|
210
|
+
|
211
|
+
PUT /companies/:id(.:format) companies#update
|
212
|
+
|
213
|
+
DELETE /companies/:id(.:format) companies#destroy
|
214
|
+
|
215
|
+
root GET / home#top
|
216
|
+
|
217
|
+
home_top GET /home/top(.:format) home#top
|
218
|
+
|
219
|
+
new_user_session GET /users/sign_in(.:format) devise/sessions#new
|
220
|
+
|
221
|
+
user_session POST /users/sign_in(.:format) devise/sessions#create
|
222
|
+
|
223
|
+
destroy_user_session DELETE /users/sign_out(.:format) devise/sessions#destroy
|
224
|
+
|
225
|
+
new_user_password GET /users/password/new(.:format) devise/passwords#new
|
226
|
+
|
227
|
+
edit_user_password GET /users/password/edit(.:format) devise/passwords#edit
|
228
|
+
|
229
|
+
user_password PATCH /users/password(.:format) devise/passwords#update
|
230
|
+
|
231
|
+
PUT /users/password(.:format) devise/passwords#update
|
232
|
+
|
233
|
+
POST /users/password(.:format) devise/passwords#create
|
234
|
+
|
235
|
+
cancel_user_registration GET /users/cancel(.:format) registrations#cancel
|
236
|
+
|
237
|
+
new_user_registration GET /users/sign_up(.:format) registrations#new
|
238
|
+
|
239
|
+
edit_user_registration GET /users/edit(.:format) registrations#edit
|
240
|
+
|
241
|
+
user_registration PATCH /users(.:format) registrations#update
|
242
|
+
|
243
|
+
PUT /users(.:format) registrations#update
|
244
|
+
|
245
|
+
DELETE /users(.:format) registrations#destroy
|
246
|
+
|
247
|
+
POST /users(.:format) registrations#create
|
248
|
+
|
249
|
+
new_user_confirmation GET /users/confirmation/new(.:format) devise/confirmations#new
|
250
|
+
|
251
|
+
user_confirmation GET /users/confirmation(.:format) devise/confirmations#show
|
252
|
+
|
253
|
+
POST /users/confirmation(.:format) devise/confirmations#create
|
254
|
+
|
255
|
+
new_user_unlock GET /users/unlock/new(.:format) devise/unlocks#new
|
256
|
+
|
257
|
+
user_unlock GET /users/unlock(.:format) devise/unlocks#show
|
258
|
+
|
259
|
+
POST /users/unlock(.:format) devise/unlocks#create
|
260
|
+
|
261
|
+
rails_service_blob GET /rails/active_storage/blobs/:signed_id/*filename(.:format) active_storage/blobs#show
|
262
|
+
|
263
|
+
rails_blob_representation GET /rails/active_storage/representations/:signed_blob_id/:variation_key/*filename(.:format) active_storage/representations#show
|
264
|
+
|
265
|
+
rails_disk_service GET /rails/active_storage/disk/:encoded_key/*filename(.:format) active_storage/disk#show
|
266
|
+
|
267
|
+
update_rails_disk_service PUT /rails/active_storage/disk/:encoded_token(.:format) active_storage/disk#update
|
268
|
+
|
269
|
+
rails_direct_uploads POST /rails/active_storage/direct_uploads(.:format) active_storage/direct_uploads#create
|
270
|
+
|
271
|
+
```
|
272
|
+
|
193
273
|
|
194
274
|
|
195
275
|
### 試したこと
|