質問編集履歴

1

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

2021/12/11 07:52

投稿

istone
istone

スコア2

test CHANGED
File without changes
test CHANGED
@@ -118,6 +118,40 @@
118
118
 
119
119
  ```
120
120
 
121
+ ```routes
122
+
123
+ Rails.application.routes.draw do
124
+
125
+ resources :folders do
126
+
127
+ resources :records do
128
+
129
+ member do
130
+
131
+ get "sort"
132
+
133
+ end
134
+
135
+ end
136
+
137
+ end
138
+
139
+ devise_for :users
140
+
141
+ # For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html
142
+
143
+
144
+
145
+ root to: "home#index"
146
+
147
+
148
+
149
+ end
150
+
151
+
152
+
153
+ ```
154
+
121
155
 
122
156
 
123
157