fields for instead form for (solved problem with sibmission button)

This commit is contained in:
yqbk
2016-08-24 11:20:14 +02:00
parent 7bead2c473
commit f757737606
2 changed files with 4 additions and 8 deletions

View File

@ -1,4 +1,4 @@
= form_for(file) do |f|
= fields_for(file) do |f|
li.panel.panel-default
.panel-heading role="tab" id="heading"
a.file-heading data-toggle="collapse" data-parent="#files" href="#collapse#{file.id}"
@ -36,8 +36,6 @@
.form-group
= f.label(:role, t('activerecord.attributes.file.weight'))
= f.number_field(:weight, class: 'form-control', min: 1, step: 'any')
/render ace editor
- unless file.new_record?
= render partial: 'ace', locals: { exercise: @exercise, file: file }