forked from bofh/fetsite
Kleinigkeiten, formatierung, bugfix
This commit is contained in:
@@ -9,7 +9,7 @@ class LvasController < ApplicationController
|
|||||||
# GET /lvas/1
|
# GET /lvas/1
|
||||||
|
|
||||||
def show
|
def show
|
||||||
@lva = Lva.find(params[:id])
|
@lva = Lva.find_by_id(params[:id])
|
||||||
@toolbar_elements<<{:icon=>:pencil,:text =>I18n.t('common.edit'),:path => edit_lva_path(@lva)}
|
@toolbar_elements<<{:icon=>:pencil,:text =>I18n.t('common.edit'),:path => edit_lva_path(@lva)}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@@ -3,14 +3,15 @@ class ModulsController < ApplicationController
|
|||||||
# GET /moduls.json
|
# GET /moduls.json
|
||||||
def index
|
def index
|
||||||
@moduls = Modul.all
|
@moduls = Modul.all
|
||||||
|
if @moduls
|
||||||
if !params[:studium_id].nil?
|
if !params[:studium_id].nil?
|
||||||
@studium=Studium.find(params[:studium_id])
|
@studium=Studium.find_by_id(params[:studium_id])
|
||||||
end
|
end
|
||||||
respond_to do |format|
|
respond_to do |format|
|
||||||
format.html # index.html.erb
|
format.html # index.html.erb
|
||||||
format.json { render json: @moduls }
|
format.json { render json: @moduls }
|
||||||
end
|
end
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
# GET /moduls/1
|
# GET /moduls/1
|
||||||
|
|||||||
Reference in New Issue
Block a user