Add new lines at eof

This commit is contained in:
Maximilian Grundke
2017-10-04 12:53:09 +02:00
parent 70eb0d19b8
commit 06e99059d4
6 changed files with 6 additions and 6 deletions

View File

@ -6,4 +6,4 @@ class ExerciseCollection < ActiveRecord::Base
"#{I18n.t('activerecord.models.exercise_collection.one')}: #{name} (#{id})"
end
end
end

View File

@ -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)

View File

@ -1,3 +1,3 @@
h1 = @exercise_collection
= render('form')
= render('form')

View File

@ -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)

View File

@ -1,3 +1,3 @@
h1 = t('shared.new_model', model: ExerciseCollection.model_name.human)
= render('form')
= render('form')

View File

@ -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)