From 70eb0d19b89049e16e44b69b51d5624f2f8a83a3 Mon Sep 17 00:00:00 2001 From: Maximilian Grundke Date: Wed, 4 Oct 2017 12:47:59 +0200 Subject: [PATCH] Link to exercises contained in collections --- app/views/exercise_collections/show.html.slim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/exercise_collections/show.html.slim b/app/views/exercise_collections/show.html.slim index 89081efe..ac2d0a37 100644 --- a/app/views/exercise_collections/show.html.slim +++ b/app/views/exercise_collections/show.html.slim @@ -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 = exercise \ No newline at end of file + li = link_to(exercise, exercise) \ No newline at end of file