small fixes

This commit is contained in:
2015-05-24 13:42:26 +02:00
parent c86b175250
commit eee8248c0f
4 changed files with 13 additions and 8 deletions

View File

@@ -1,7 +1,7 @@
class HomeController < ApplicationController
def index
@beispiele = Beispiel.last([Beispiel.count, 3].min)
@neuigkeiten = Neuigkeit.recent
@neuigkeiten = Neuigkeit.accessible_by(current_ability, :show).limit(10)
if Thema.count>0
t=YAML.load_file("#{::Rails.root.to_s}/config/start_topic.yml")
@rubriken= Rubrik.accessible_by(current_ability, :show)