gremien + routes update

This commit is contained in:
Andreas Stephanides
2013-09-01 10:45:31 +02:00
parent 4dbe3f90b4
commit a3ca1f1f10
3 changed files with 9 additions and 4 deletions

View File

@@ -1,9 +1,11 @@
class GremienController < ApplicationController
# GET /gremien
# GET /gremien.json
before_filter {@toolbar_elements=[]}
def verwalten
@gremien = Gremium.all
@gremientabs=Gremium.all
@gremientabs=Gremium.all
@toolbar_elements << {:text=>I18n.t('common.new'),:path=>new_gremium_path() ,:icon=>:plus} if can? :new, Gremium
respond_to do |format|
format.html # index.html.erb
format.json { render json: @gremien }
@@ -14,7 +16,7 @@ class GremienController < ApplicationController
# GET /gremien/1.json
def show
@gremium = Gremium.find(params[:id])
@gremientabs=Gremium.order(:typ)
@gremientabs=Gremium.order(:typ)
respond_to do |format|
format.html # show.html.erb
format.json { render json: @gremium }