Fixed and refactored foodcoop/workgroups.

This commit is contained in:
benni 2011-05-16 00:34:43 +02:00
parent c87ead8da9
commit 06f2cc2007
6 changed files with 54 additions and 23 deletions

View file

@ -14,13 +14,9 @@ class Foodcoop::WorkgroupsController < ApplicationController
def update
@workgroup = Workgroup.find(params[:id])
if @workgroup.update_attributes(params[:workgroup])
flash[:notice] = "Arbeitsgruppe wurde aktualisiert"
redirect_to foodcoop_workgroups_url
redirect_to foodcoop_workgroups_url, :notice => "Arbeitsgruppe wurde aktualisiert"
else
render :action => 'edit'
end
end
def memberships
end
end