<% content_for :head do %> <%= javascript_include_tag "https://js.balancedpayments.com/v1/balanced.js" %> <%= javascript_include_tag "transactionable/add_bank_account.js" %> <% end %> <% javascript_tag do %> $(document).ready(function() { var marketplaceUri = "#{Balanced::Marketplace.my_marketplace.uri}"; balanced.init(marketplaceUri); }); <% end %> <%= form_for :bank_account_info, url: action, html: { class: "acct-info-form" } do |f| %> <%= f.label :name %> <%= f.text_field :name, class: "acct-name" %> <%= f.label :account_number, "Account Number" %> <%= f.text_field :account_number, class: "acct-number" %> <%= f.label :routing_number, "Routing Number" %> <%= f.text_field :routing_number, class: "acct-routing-number" %> <%= f.label :type %> <%= f.select :type, Transactionable::BankAccount::TYPES, class: "acct-type" %> <%= f.hidden_field :balanced_uri, class: "acct-balanced-uri" %> <%= f.submit "Submit Bank Account Info", class: "submit-bank-acct-info" %> <% end %>