Semesters edit überarbeitet

This commit is contained in:
Thomas Blazek
2013-08-11 00:35:23 +02:00
parent 8229570ec7
commit 1bddc125eb
3 changed files with 7 additions and 10 deletions

View File

@@ -16,6 +16,7 @@ class SemestersController < ApplicationController
def edit
@semester = Semester.find(params[:id])
@studium = @semester.studium
end
def create
@@ -33,7 +34,7 @@ class SemestersController < ApplicationController
def update
@semester = Semester.find(params[:id])
@studium= @semester.studium
respond_to do |format|
if @semester.update_attributes(params[:semester])
format.html { redirect_to @semester, notice: 'Semester was successfully updated.' }