forked from bofh/fetsite
error new fetprofile
This commit is contained in:
@@ -21,7 +21,7 @@ class FetprofilesController < ApplicationController
|
|||||||
def show
|
def show
|
||||||
@fetprofile = Fetprofile.find(params[:id])
|
@fetprofile = Fetprofile.find(params[:id])
|
||||||
@gremientabs = Gremium.tabs
|
@gremientabs = Gremium.tabs
|
||||||
|
|
||||||
if params["verwalten"]
|
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-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
|
@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
|
# GET /fetprofiles/new.json
|
||||||
def new
|
def new
|
||||||
@fetprofile = Fetprofile.new
|
@fetprofile = Fetprofile.new
|
||||||
|
@memberships=[];
|
||||||
|
@memberships<<Membership.new
|
||||||
|
|
||||||
respond_to do |format|
|
respond_to do |format|
|
||||||
format.html # new.html.erb
|
format.html # new.html.erb
|
||||||
|
|||||||
Reference in New Issue
Block a user