forked from bofh/fetsite
fix neuigkeiten
This commit is contained in:
@@ -16,7 +16,7 @@ class RubrikenController < ApplicationController
|
|||||||
@rubriken= Rubrik.accessible_by(current_ability, :show)
|
@rubriken= Rubrik.accessible_by(current_ability, :show)
|
||||||
@neuigkeiten = Neuigkeit.accessible_by(current_ability, :list).page(params[:page]).per(3)
|
@neuigkeiten = Neuigkeit.accessible_by(current_ability, :list).page(params[:page]).per(3)
|
||||||
|
|
||||||
@calentries= (@rubriken.map {|r| r.calendar.calentries.of_month(Date.new(params[:year],params[:month],1))}).flatten.select {|c| c.object !=nil}
|
@calentries= (@rubriken.map {|r| r.calendar.calentries.of_month(Date.new(params[:year].to_i,params[:month].to_i,1))}).flatten.select {|c| c.object !=nil}
|
||||||
respond_to do |format|
|
respond_to do |format|
|
||||||
format.html
|
format.html
|
||||||
format.js {render action: :show}
|
format.js {render action: :show}
|
||||||
|
|||||||
Reference in New Issue
Block a user