From d93d6c7cf8245bc116a18c76ba5ef8fbcf344b84 Mon Sep 17 00:00:00 2001 From: Nicolas Bally Date: Wed, 25 Jul 2018 18:00:13 +0200 Subject: [PATCH] suite --- app/views/public/plumes/_sommaire.html.haml | 2 +- app/views/public/plumes/agenda.html.haml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/public/plumes/_sommaire.html.haml b/app/views/public/plumes/_sommaire.html.haml index e3935e6..621ec06 100644 --- a/app/views/public/plumes/_sommaire.html.haml +++ b/app/views/public/plumes/_sommaire.html.haml @@ -8,7 +8,7 @@ %h3 =plume_cat.title - -plume_cat.plume_articles.each do |plume_article| + -plume_cat.plume_articles.order(:position).each do |plume_article| =link_to plume_article.title, public_plume_article_path(plume_article) diff --git a/app/views/public/plumes/agenda.html.haml b/app/views/public/plumes/agenda.html.haml index 5f937e5..160cfe8 100644 --- a/app/views/public/plumes/agenda.html.haml +++ b/app/views/public/plumes/agenda.html.haml @@ -11,7 +11,7 @@ .plume_cat Agenda - -@plume.plume_events.each do |plume_event| + -@plume.plume_events.order(:position).each do |plume_event| .plume_event %h2=plume_event.title .date