Revisions
-
keithpitt revised this gist
Jan 25, 2011 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -5,7 +5,7 @@ @supplier_to = Supplier.find(params[:supplier_id]) rescue ActiveRecord::RecordNotFound flash[:error] = "#{t('object.supplier')} #{t('messages.not_found')}" return redirect_to(manage_supplier_path(@supplier_from.id)) end render :merge_suppliers -
dangalipo created this gist
Jan 25, 2011 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,12 @@ def merge_suppliers @supplier_from = Supplier.find(params[:id]) begin @supplier_to = Supplier.find(params[:supplier_id]) rescue ActiveRecord::RecordNotFound flash[:error] = "#{t('object.supplier')} #{t('messages.not_found')}" redirect_to manage_supplier_path(@supplier_from.id) end render :merge_suppliers end