forked from bofh/fetsite
kleiner bugfix, layout
This commit is contained in:
@@ -42,7 +42,7 @@ class BeispieleController < ApplicationController
|
||||
# POST /beispiele.json
|
||||
def create
|
||||
@beispiel = Beispiel.new(params[:beispiel])
|
||||
|
||||
|
||||
respond_to do |format|
|
||||
if @beispiel.save
|
||||
format.html { redirect_to @beispiel, notice: 'Beispiel was successfully created.' }
|
||||
|
||||
@@ -214,7 +214,7 @@ class StudienController < ApplicationController
|
||||
end
|
||||
for b in @beispiele
|
||||
if b.valid?
|
||||
@messages << b.name + ' hat keine Lva' if lva.moduls
|
||||
@messages << b.name + ' hat keine Lva' if b.lva.nil?
|
||||
else
|
||||
@messages << '<font color="red"><b>'+b.name + ': '
|
||||
@messages << b.errors.full_messages
|
||||
|
||||
Reference in New Issue
Block a user