Implement show route

This commit is contained in:
Maximilian Grundke
2017-09-27 16:52:42 +02:00
parent 93797a665d
commit f0c0621b31
2 changed files with 15 additions and 1 deletions

View File

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