質問編集履歴
1
models、routesの追記です
title
CHANGED
File without changes
|
body
CHANGED
@@ -130,6 +130,17 @@
|
|
130
130
|
<br>
|
131
131
|
|
132
132
|
<%= link_to 'New Registration', new_registration_path %>
|
133
|
+
|
134
|
+
#routes.rbの内容です
|
135
|
+
Rails.application.routes.draw do
|
136
|
+
resources :registrations
|
137
|
+
get 'hotels/hello'
|
138
|
+
# For details on the DSL available within this file, see https://guides.rubyonrails.org/routing.html
|
139
|
+
end
|
140
|
+
|
141
|
+
#registrations.rbの内容です
|
142
|
+
class Registration < ApplicationRecord
|
143
|
+
end
|
133
144
|
```
|
134
145
|
|
135
146
|
### 試したこと
|