forked from bofh/fetsite
themen index
This commit is contained in:
@@ -3,7 +3,11 @@ class ThemenController < ApplicationController
|
||||
# GET /themen
|
||||
# GET /themen.json
|
||||
load_and_authorize_resource
|
||||
def index
|
||||
@themen = Thema.accessible_by(current_ability,:show)
|
||||
@themen_drafts = Thema.accessible_by(current_ability,:show).where(:isdraft=>true)
|
||||
|
||||
end
|
||||
def show
|
||||
@thema = Thema.find(params[:id])
|
||||
@fragen=@thema.fragen
|
||||
|
||||
Reference in New Issue
Block a user