From 968448cea22364f1fd423cedc54cf6d8a0f2e09e Mon Sep 17 00:00:00 2001 From: Azul Date: Tue, 2 Jul 2013 12:52:16 +0200 Subject: billing: update customer records - do not create new ones --- billing/app/views/customer/edit.html.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'billing/app/views') diff --git a/billing/app/views/customer/edit.html.haml b/billing/app/views/customer/edit.html.haml index f9c1383..dfc932e 100644 --- a/billing/app/views/customer/edit.html.haml +++ b/billing/app/views/customer/edit.html.haml @@ -2,7 +2,7 @@ #total-errors{:style => "color:red;"} = h(@result.errors.size) error(s) -= form_for :customer, :url => Braintree::TransparentRedirect.url, :params => @result && @result.params[:customer],:existing => @braintree_data, :builder => BraintreeFormHelper::BraintreeFormBuilder, :errors => @result && @result.errors.for(:customer) do |f| | += form_for :customer, :url => Braintree::TransparentRedirect.url, :params => @result && @result.params[:customer],:existing => @customer, :builder => BraintreeHelper::BraintreeFormBuilder, :errors => @result && @result.errors.for(:customer) do |f| | = field_set_tag "Customer" do %dl %dt= f.label :first_name, 'First Name' -- cgit v1.2.3