summaryrefslogtreecommitdiff
path: root/billing/app/views/customer
diff options
context:
space:
mode:
authorAzul <azul@leap.se>2013-07-02 12:52:16 +0200
committerAzul <azul@leap.se>2013-07-17 10:47:14 +0200
commit968448cea22364f1fd423cedc54cf6d8a0f2e09e (patch)
treec3d2f02ea7bf7b32dbabefd80800696e03105d7c /billing/app/views/customer
parent5589ef858a19f1c46e7e8aa5b364914a5f14352a (diff)
billing: update customer records - do not create new ones
Diffstat (limited to 'billing/app/views/customer')
-rw-r--r--billing/app/views/customer/edit.html.haml2
1 files changed, 1 insertions, 1 deletions
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'