error new fetprofile

This commit is contained in:
Andreas Stephanides
2013-11-13 16:27:32 +01:00
parent 52e7e79c16
commit 372c91908e

View File

@@ -21,7 +21,7 @@ class FetprofilesController < ApplicationController
def show
@fetprofile = Fetprofile.find(params[:id])
@gremientabs = Gremium.tabs
if params["verwalten"]
@toolbar_elements << {:hicon=>'icon-plus', :text=> I18n.t('fetprofile.newmembership'),:path => new_fetprofile_membership_path(@fetprofile) , :confirm=>"Sure?" } if can? :new, Membership
@toolbar_elements << {:hicon=>'icon-pencil', :text=> I18n.t('common.edit'),:path => edit_fetprofile_path(@fetprofile),:confirm=>"Sure?" } if can? :edit, @fetprofile
@@ -40,6 +40,8 @@ class FetprofilesController < ApplicationController
# GET /fetprofiles/new.json
def new
@fetprofile = Fetprofile.new
@memberships=[];
@memberships<<Membership.new
respond_to do |format|
format.html # new.html.erb