Add new lines at eof
This commit is contained in:
@ -6,4 +6,4 @@ class ExerciseCollection < ActiveRecord::Base
|
||||
"#{I18n.t('activerecord.models.exercise_collection.one')}: #{name} (#{id})"
|
||||
end
|
||||
|
||||
end
|
||||
end
|
||||
|
@ -8,4 +8,4 @@
|
||||
.form-group
|
||||
= f.label(:exercises)
|
||||
= f.collection_select(:exercise_ids, exercises, :id, :title, {}, {class: 'form-control', multiple: true})
|
||||
.actions = render('shared/submit_button', f: f, object: @exercise_collection)
|
||||
.actions = render('shared/submit_button', f: f, object: @exercise_collection)
|
||||
|
@ -1,3 +1,3 @@
|
||||
h1 = @exercise_collection
|
||||
|
||||
= render('form')
|
||||
= render('form')
|
||||
|
@ -21,4 +21,4 @@ h1 = ExerciseCollection.model_name.human(count: 2)
|
||||
td = link_to(t('shared.destroy'), collection, data: {confirm: t('shared.confirm_destroy')}, method: :delete)
|
||||
|
||||
= render('shared/pagination', collection: @exercise_collections)
|
||||
p = render('shared/new_button', model: ExerciseCollection)
|
||||
p = render('shared/new_button', model: ExerciseCollection)
|
||||
|
@ -1,3 +1,3 @@
|
||||
h1 = t('shared.new_model', model: ExerciseCollection.model_name.human)
|
||||
|
||||
= render('form')
|
||||
= render('form')
|
||||
|
@ -8,4 +8,4 @@ h1
|
||||
h4 = t('activerecord.attributes.exercise_collections.exercises')
|
||||
ul.list-unstyled
|
||||
- @exercise_collection.exercises.sort_by{|c| c.title}.each do |exercise|
|
||||
li = link_to(exercise, exercise)
|
||||
li = link_to(exercise, exercise)
|
||||
|
Reference in New Issue
Block a user