Sortierungen für index.hmtl angepasst

This commit is contained in:
Thomas Blazek
2013-07-25 13:44:31 +02:00
parent 4994f011dc
commit 9195ac20e2
3 changed files with 4 additions and 4 deletions

View File

@@ -1,7 +1,7 @@
<h1><%= I18n.t("studien.list") %></h1>
<% @studien.each do |studium| %>
<% @studien.sort_by{|z| z[:zahl]}.each do |studium| %>
<h2><%= link_to studium.zahl + " "+ studium.typ+" " + studium.name, studium_path(studium) %></h2>