Neuigkeiten updateund lva

This commit is contained in:
Andreas Stephanides
2013-03-24 00:53:30 +01:00
parent 7494e76701
commit d6ce165782
10 changed files with 123 additions and 48 deletions

View File

@@ -1,5 +1,5 @@
class NeuigkeitenController < ApplicationController
before_filter {@toolbar_elements=[]}
def index
@neuigkeiten = Neuigkeit.all
end
@@ -7,7 +7,9 @@ class NeuigkeitenController < ApplicationController
def show
@neuigkeit = Neuigkeit.find(params[:id])
if can? :edit, @neuigkeit
@toolbar_elements << {:text=>I18n.t('common.edit'),:path=>edit_neuigkeit_path(@neuigkeit),:icon=>:pencil}
end
end
def new