refactored JavaScript code not to use inline Ruby evaluation
This commit is contained in:
@@ -1,4 +1,7 @@
|
||||
= form_for(@exercise, multipart: true) do |f|
|
||||
- execution_environments = ExecutionEnvironment.where('file_type_id IS NOT NULL').select(:file_type_id, :id)
|
||||
- file_types = FileType.where('file_extension IS NOT NULL').select(:file_extension, :id)
|
||||
|
||||
= form_for(@exercise, data: {execution_environments: execution_environments, file_types: file_types}, multipart: true) do |f|
|
||||
= render('shared/form_errors', object: @exercise)
|
||||
.form-group
|
||||
= f.label(:title)
|
||||
|
Reference in New Issue
Block a user