app/controllers/groups_controller.rb
def update
    new_employee_group(params[:employee_group])
    new_product_group(params[:new_product_group])
    new_product_group_portfolio(params[:new_product_group_portfolios])
    new_group_portfolio(params[:new_group_portfolio])
    new_portfolio(params[:new_portfolio])
    if @group.update_attributes(params[:group])
      flash[:notice] = t(:group) + t(:updated)
    else
      flash[:error] = t(:group) + t(:needs_a_name)
      @error = true
    end
    if @error.blank?
      redirect_to edit_group_path(@group.id) 
    else
      render :edit
    end
  end
# Updates a group based on the information endered on the "edit" page
Updates a group based on the information endered on the "edit" page
Updates a group based on the information endered on the " edit " page
def update
    new_employee_group(params[:employee_group])
    new_product_group(params[:new_product_group])
    new_product_group_portfolio(params[:new_product_group_portfolios])
    new_group_portfolio(params[:new_group_portfolio])
    new_portfolio(params[:new_portfolio])
    if @group.update_attributes(params[:group])
      flash[:notice] = t(:group) + t(:updated)
    else
      flash[:error] = t(:group) + t(:needs_a_name)
      @error = true
    end
    if @error.blank?
      redirect_to edit_group_path(@group.id) 
    else
      render :edit
    end
  end
def update new_employee_group ( params [ :employee_group ] ) new_product_group ( params [ :new_product_group ] ) new_product_group_portfolio ( params [ :new_product_group_portfolios ] ) new_group_portfolio ( params [ :new_group_portfolio ] ) new_portfolio ( params [ :new_portfolio ] ) if @group . update_attributes ( params [ :group ] ) flash [ :notice ] = t ( :group ) + t ( :updated ) else flash [ :error ] = t ( :group ) + t ( :needs_a_name ) @error = true end if @error . blank? redirect_to edit_group_path ( @group . id ) else render :edit end end
Updates a group based on the information endered on the "edit" page
Updates a group based on the information endered on the " edit " page