forked from bofh/fetsite
Merge branch 'kalender' of https://github.com/andreassteph/fetsite into calendar
Conflicts: app/assets/stylesheets/formtastic-changes.css.scss app/controllers/beispiele_controller.rb app/views/studien/_form.html.erb config/locales/de.yml config/routes.rb
This commit is contained in:
@@ -26,7 +26,8 @@ class BeispieleController < ApplicationController
|
||||
# GET /beispiele/new.json
|
||||
def new
|
||||
@beispiel = Beispiel.new
|
||||
@beispiel.lva_id = params[:lva_id]
|
||||
@beispiel.lva = Lva.find(params[:lva_id])
|
||||
|
||||
respond_to do |format|
|
||||
format.html # new.html.erb
|
||||
format.json { render json: @beispiel }
|
||||
@@ -41,8 +42,13 @@ class BeispieleController < ApplicationController
|
||||
# POST /beispiele
|
||||
# POST /beispiele.json
|
||||
def create
|
||||
lvaid=params[:lva_id]
|
||||
params.delete(:lva_id)
|
||||
@beispiel = Beispiel.new(params[:beispiel])
|
||||
<<<<<<< HEAD
|
||||
|
||||
=======
|
||||
>>>>>>> a5a02e065a319d162c5a280605c2c0d3c15643ca
|
||||
respond_to do |format|
|
||||
if @beispiel.save
|
||||
format.html { redirect_to @beispiel, notice: 'Beispiel was successfully created.' }
|
||||
|
||||
Reference in New Issue
Block a user