forked from bofh/fetsite
Kleinigkeiten, formatierung, bugfix
This commit is contained in:
@@ -9,7 +9,7 @@ class LvasController < ApplicationController
|
||||
# GET /lvas/1
|
||||
|
||||
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)}
|
||||
end
|
||||
|
||||
|
||||
@@ -3,14 +3,15 @@ class ModulsController < ApplicationController
|
||||
# GET /moduls.json
|
||||
def index
|
||||
@moduls = Modul.all
|
||||
if @moduls
|
||||
if !params[:studium_id].nil?
|
||||
@studium=Studium.find(params[:studium_id])
|
||||
@studium=Studium.find_by_id(params[:studium_id])
|
||||
end
|
||||
respond_to do |format|
|
||||
format.html # index.html.erb
|
||||
format.json { render json: @moduls }
|
||||
end
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
# GET /moduls/1
|
||||
|
||||
Reference in New Issue
Block a user