validate error

This commit is contained in:
Aung Myo
2017-06-13 12:04:55 +06:30
parent 9e4c8cef68
commit ee54f1cdd3
6 changed files with 29 additions and 42 deletions

View File

@@ -24,12 +24,10 @@ class Origami::CustomersController < BaseOrigamiController
end
# @crm_customers = Kaminari.paginate_array(@crm_customers).page(params[:page]).per(2)
@crm_customer = Customer.new
# @membership = Customer.get_member_group
# if @membership["status"] == true
# @member_group = @membership["data"]
# end
# puts "Errrrrrrrrrrrrrrrrr"
# puts @crm_customer.valid?
if flash["errors"]
@crm_customer.valid?
end
respond_to do |format|