質問編集履歴

1

models、routesの追記です

2021/06/25 01:44

投稿

Engineer_traine
Engineer_traine

スコア17

test CHANGED
File without changes
test CHANGED
@@ -262,6 +262,28 @@
262
262
 
263
263
  <%= link_to 'New Registration', new_registration_path %>
264
264
 
265
+
266
+
267
+ #routes.rbの内容です
268
+
269
+ Rails.application.routes.draw do
270
+
271
+ resources :registrations
272
+
273
+ get 'hotels/hello'
274
+
275
+ # For details on the DSL available within this file, see https://guides.rubyonrails.org/routing.html
276
+
277
+ end
278
+
279
+
280
+
281
+ #registrations.rbの内容です
282
+
283
+ class Registration < ApplicationRecord
284
+
285
+ end
286
+
265
287
  ```
266
288
 
267
289