FIXED themengruppe verwalten + faqs order

This commit is contained in:
Andreas Stephanides
2014-03-29 13:10:41 +01:00
parent 7f9b0b996e
commit 5134e25b81
5 changed files with 9 additions and 6 deletions

View File

@@ -77,7 +77,7 @@ class ThemenController < ApplicationController
end
end
def fragen
@thema = Thema.find(params[:thema_id])
@thema = Thema.find(params[:id])
@fragen=@thema.fragen
respond_to do |format|
format.js

View File

@@ -13,7 +13,7 @@ class ThemengruppenController < ApplicationController
end
end
def faqs
@themengruppen = Themengruppe.order(:priority).includes(:themen,{themen: :fragen})
@themengruppen = Themengruppe.order("themengruppen.priority").includes(:themen,{themen: :fragen}).order("themen.priority").reverse
end