summaryrefslogtreecommitdiff
path: root/billing/app/views/customer/edit.html.haml
diff options
context:
space:
mode:
authorAzul <azul@leap.se>2013-07-11 12:43:53 +0200
committerAzul <azul@leap.se>2013-07-17 10:47:15 +0200
commit3a0948339984a108ada449c3a5dbbc9086a2af26 (patch)
tree666eeda8c98a0ba4b14ba78600cc40e205933106 /billing/app/views/customer/edit.html.haml
parentbae22682888c6e656a7c032fe819f4b662ee84ea (diff)
billing: helper for the typical BraintreeForm
Diffstat (limited to 'billing/app/views/customer/edit.html.haml')
-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 f11e948..76c678b 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: @customer, builder: BraintreeFormHelper::BraintreeFormBuilder, errors: @result && @result.errors.for(:customer) do |f| |
+= braintree_form_for :customer, existing: @customer do |f|
= field_set_tag "Customer" do
%dl
%dt= f.label :first_name, 'First Name'