Order forums by name

This commit is contained in:
Brenda Wallace
2017-12-07 13:42:48 +13:00
parent 35d8461811
commit cd35538b83

View File

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