This commit is contained in:
Andreas Stephanides
2013-11-11 20:25:07 +01:00
2 changed files with 2 additions and 2 deletions

View File

@@ -3,7 +3,7 @@ class ThemengruppenController < ApplicationController
# GET /themengruppen.json
load_and_authorize_resource
def index
@themengruppen = Themengruppe.all
@themengruppen = Themengruppe.order(:title)
@toolbar_elements = [{:icon=>:plus, :hicon=>'icon-plus-sign', :text=>I18n.t('themengruppe.new'), :path=>new_themengruppe_path()}]
respond_to do |format|

View File

@@ -26,7 +26,7 @@
<div class="span6">
<!--<b><%= I18n.t("themengruppe.themen") %></b>
--><ul>
<% themengruppe.themen.each do |t| %>
<% themengruppe.themen.order(:title).each do |t| %>
<li>
<%= render t %>
</li>