AutoCommit Die Aug 4 22:03:01 CEST 2015

This commit is contained in:
Andreas Stephanides
2015-08-04 22:03:01 +02:00
parent aa06d2195e
commit 9b1c35f499
7 changed files with 57 additions and 18 deletions

View File

@@ -5,15 +5,15 @@ class BeispieleController < ApplicationController
include LikeVoteable
acts_as_flagable
def index
unless params[:lva_id].nil?
@beispiele= Lva.find(params[:lva_id]).beispiele.accessible_by(current_ability, :show)
else
@beispiele = Beispiel.accessible_by(current_ability, :show)
end
respond_to do |format|
format.html # index.html.erb
format.json { render json: @beispiele }
end
# unless params[:lva_id].nil?
# @beispiele= Lva.find(params[:lva_id]).beispiele.accessible_by(current_ability, :show)
# else
# @beispiele = Beispiel.accessible_by(current_ability, :show)
# end
# respond_to do |format|
# format.html # index.html.erb
# format.json { render json: @beispiele }
# end
end
# GET /beispiele/1