teratail header banner
teratail header banner
質問するログイン新規登録

質問編集履歴

1

ご忠告ありがとうございます。 routes.rb 追記いたしました

2021/12/11 07:52

投稿

istone
istone

スコア2

title CHANGED
File without changes
body CHANGED
@@ -58,10 +58,27 @@
58
58
  end
59
59
  end
60
60
  ```
61
+ ```routes
62
+ Rails.application.routes.draw do
63
+ resources :folders do
64
+ resources :records do
65
+ member do
66
+ get "sort"
67
+ end
68
+ end
69
+ end
70
+ devise_for :users
71
+ # For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html
72
+
73
+ root to: "home#index"
74
+
75
+ end
61
76
 
77
+ ```
62
78
 
63
79
 
64
80
 
81
+
65
82
  ### 試したこと
66
83
 
67
84
  リンク先を色々と変更したのですが、エラーになるか同様にrecords/.:idの表示になります。