mirror of
https://github.com/rickbarrette/redmine_qbo.git
synced 2025-11-08 17:04:23 -05:00
Update customers_controller.rb
This commit is contained in:
@@ -64,9 +64,9 @@ class CustomersController < ApplicationController
|
|||||||
flash[:notice] = "Customer updated"
|
flash[:notice] = "Customer updated"
|
||||||
redirect_to @customer
|
redirect_to @customer
|
||||||
else
|
else
|
||||||
flash[:error] = @customer.errors.full_messages.to_sentence if @customer.errors
|
|
||||||
redirect_to edit_customer_path
|
redirect_to edit_customer_path
|
||||||
end
|
end
|
||||||
|
flash[:error] = @customer.errors.full_messages.to_sentence if @customer.errors
|
||||||
rescue ActiveRecord::RecordNotFound
|
rescue ActiveRecord::RecordNotFound
|
||||||
render_404
|
render_404
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user