質問編集履歴

2

書式の改善

2020/03/22 02:27

投稿

anguraaaa
anguraaaa

スコア21

test CHANGED
File without changes
test CHANGED
@@ -150,6 +150,94 @@
150
150
 
151
151
  ```
152
152
 
153
+ rails routesの結果です
154
+
155
+ Prefix Verb URI Pattern Controller#Action
156
+
157
+ root GET / introduction#home
158
+
159
+ users GET /users(.:format) users#index
160
+
161
+ POST /users(.:format) users#create
162
+
163
+ new_user GET /users/new(.:format) users#new
164
+
165
+ edit_user GET /users/:id/edit(.:format) users#edit
166
+
167
+ user GET /users/:id(.:format) users#show
168
+
169
+ PATCH /users/:id(.:format) users#update
170
+
171
+ PUT /users/:id(.:format) users#update
172
+
173
+ DELETE /users/:id(.:format) users#destroy
174
+
175
+ users_login GET /users/login(.:format) users/sessions#new
176
+
177
+ POST /users/login(.:format) users/sessions#create
178
+
179
+ users_logout DELETE /users/logout(.:format) users/sessions#destroy
180
+
181
+ cards GET /cards(.:format) cards#index
182
+
183
+ POST /cards(.:format) cards#create
184
+
185
+ new_card GET /cards/new(.:format) cards#new
186
+
187
+ admins_login GET /admins/login(.:format) admins/sessions#new
188
+
189
+ POST /admins/login(.:format) admins/sessions#create
190
+
191
+ admins_logout DELETE /admins/logout(.:format) admins/sessions#destroy
192
+
193
+ admins POST /admins(.:format) admins#create
194
+
195
+ new_admin GET /admins/new(.:format) admins#new
196
+
197
+ card_list_point_lists POST /card_lists/:card_list_id/point_lists(.:format) point_lists#create
198
+
199
+ new_card_list_point_list GET /card_lists/:card_list_id/point_lists/new(.:format) point_lists#new
200
+
201
+ edit_card_list_point_list GET /card_lists/:card_list_id/point_lists/:id/edit(.:format) point_lists#edit
202
+
203
+ card_list_point_list PATCH /card_lists/:card_list_id/point_lists/:id(.:format) point_lists#update
204
+
205
+ PUT /card_lists/:card_list_id/point_lists/:id(.:format) point_lists#update
206
+
207
+ DELETE /card_lists/:card_list_id/point_lists/:id(.:format) point_lists#destroy
208
+
209
+ card_list_coupon_lists POST /card_lists/:card_list_id/coupon_lists(.:format) coupon_lists#create
210
+
211
+ new_card_list_coupon_list GET /card_lists/:card_list_id/coupon_lists/new(.:format) coupon_lists#new
212
+
213
+ edit_card_list_coupon_list GET /card_lists/:card_list_id/coupon_lists/:id/edit(.:format) coupon_lists#edit
214
+
215
+ card_list_coupon_list PATCH /card_lists/:card_list_id/coupon_lists/:id(.:format) coupon_lists#update
216
+
217
+ PUT /card_lists/:card_list_id/coupon_lists/:id(.:format) coupon_lists#update
218
+
219
+ DELETE /card_lists/:card_list_id/coupon_lists/:id(.:format) coupon_lists#destroy
220
+
221
+ card_lists POST /card_lists(.:format) card_lists#create
222
+
223
+ new_card_list GET /card_lists/new(.:format) card_lists#new
224
+
225
+ card_list GET /card_lists/:id(.:format) card_lists#show
226
+
227
+ rails_service_blob GET /rails/active_storage/blobs/:signed_id/*filename(.:format) active_storage/blobs#show
228
+
229
+ rails_blob_representation GET /rails/active_storage/representations/:signed_blob_id/:variation_key/*filename(.:format) active_storage/representations#show
230
+
231
+ rails_disk_service GET /rails/active_storage/disk/:encoded_key/*filename(.:format) active_storage/disk#show
232
+
233
+ update_rails_disk_service PUT /rails/active_storage/disk/:encoded_token(.:format) active_storage/disk#update
234
+
235
+ rails_direct_uploads POST /rails/active_storage/direct_uploads(.:format) active_storage/direct_uploads#create
236
+
237
+ ```
238
+
239
+ ```
240
+
153
241
  views/point_lists/edit.html.haml
154
242
 
155
243
 

1

書式の改善

2020/03/22 02:27

投稿

anguraaaa
anguraaaa

スコア21

test CHANGED
File without changes
test CHANGED
@@ -116,17 +116,15 @@
116
116
 
117
117
  2つ目にpoint_listの親要素であるcard_list_idが空になっていると思いました。
118
118
 
119
- なのでviews/point_lists/edit.html.hamlのformの部分に
119
+ なのでviews/point_lists/edit.html.hamlのformの部分に下記の記述を加えました。
120
+
121
+ しかし、うまくいきません。
120
122
 
121
123
  ```
122
124
 
123
125
  =f.hidden_field :card_list_id
124
126
 
125
127
  ```
126
-
127
- を加えました。
128
-
129
- しかし、うまくいきません。
130
128
 
131
129
 
132
130