pass file to form

This commit is contained in:
yqbk
2016-08-03 16:22:35 +02:00
parent 5c9311cf76
commit eb03ef1e50
3 changed files with 15 additions and 11 deletions

View File

@ -36,4 +36,5 @@ li.panel.panel-default
.form-group
= f.label(:role, t('activerecord.attributes.file.weight'))
= f.number_field(:weight, class: 'form-control', min: 1, step: 'any')
= render('code_field', attribute: :content, form: f, label: t('activerecord.attributes.file.content'))
//= render('code_field', attribute: :content, form: f, label: t('activerecord.attributes.file.content'))
= render('ace', exercise: @exercise, file: file)