質問編集履歴

1

補足

2019/04/22 08:25

投稿

joru
joru

スコア45

test CHANGED
@@ -1 +1 @@
1
- railsでnewだと動くformがeditだとエラーが出る
1
+ railsでnewだと動くformがeditだとエラーが出る
test CHANGED
@@ -297,3 +297,33 @@
297
297
  <% end %>
298
298
 
299
299
  ```
300
+
301
+
302
+
303
+ ### 補足
304
+
305
+
306
+
307
+ Extracted source (around line #2):
308
+
309
+
310
+
311
+ 1 <tr>
312
+
313
+ 2 <%= form.hidden_field :id %>
314
+
315
+ 3 <td>
316
+
317
+ 4 <%= form.collection_select :category_id, form.object.selectable_categories,5 :id, :name, {}, class: 'form-control' %>
318
+
319
+ 5 </td>
320
+
321
+ 6 <td>
322
+
323
+
324
+
325
+ Trace of template inclusion: app/views/profiles/_form.html.erb, app/views/profiles/edit.html.erb
326
+
327
+
328
+
329
+ Rails.root: /Users/koheiobata/PORME/code/fukurikun