Kleine Korrekturen

This commit is contained in:
Thomas Blazek
2013-07-30 09:42:13 +02:00
parent 3cc2899b26
commit e686a21c9f
2 changed files with 3 additions and 2 deletions

View File

@@ -27,9 +27,9 @@ class ModulgruppenController < ApplicationController
def new def new
@modulgruppe = Modulgruppe.new @modulgruppe = Modulgruppe.new
if !params[:studium_id].nil? if !params[:studium_id].nil?
@studium=Studium.find(params[:studium_id]) @modulgruppe.studium_id=(params[:studium_id])
else else
@studium=Studium.first @modulgruppe.studium_id=studium_id=Studium.first.id
end end
respond_to do |format| respond_to do |format|
format.html # new.html.erb format.html # new.html.erb

View File

@@ -7,6 +7,7 @@ class StudienController < ApplicationController
@toolbar_elements<<{:icon =>:plus, :text=> I18n.t('studien.new') ,:path=>new_studium_path } @toolbar_elements<<{:icon =>:plus, :text=> I18n.t('studien.new') ,:path=>new_studium_path }
@toolbar_elements<<{:text=> I18n.t('modulgruppe.show.link') ,:path=>modulgruppen_path } @toolbar_elements<<{:text=> I18n.t('modulgruppe.show.link') ,:path=>modulgruppen_path }
@toolbar_elements<<{:text=> I18n.t('modul.show.link') ,:path=>moduls_path } @toolbar_elements<<{:text=> I18n.t('modul.show.link') ,:path=>moduls_path }
@toolbar_elements<<{:text=> 'Alle LVas auflisten', :path=>lvas_path}
end end
def show def show