From cd35538b83b92c4ab4e419bf8a7d50fb2ff634f1 Mon Sep 17 00:00:00 2001 From: Brenda Wallace Date: Thu, 7 Dec 2017 13:42:48 +1300 Subject: [PATCH] Order forums by name --- app/views/home/_discuss.html.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/home/_discuss.html.haml b/app/views/home/_discuss.html.haml index 9159cde46..9ffc6b502 100644 --- a/app/views/home/_discuss.html.haml +++ b/app/views/home/_discuss.html.haml @@ -5,7 +5,7 @@ = render partial: "posts/summary", locals: { posts: posts, howmany: 6 } - cache cache_key_for(Forum) do - - forums = Forum.all + - forums = Forum.all.order(:name) - if forums %ul.list-inline %li