Sha256: 2877a0e5f6d0948ba22d8d4acc8887df9494433f44c9403c0d90b827f0daebe4
Contents?: true
Size: 784 Bytes
Versions: 6
Compression:
Stored size: 784 Bytes
Contents
<%= form_for(card, url: url, html: { id: 'payment-form' }) do |f| %> <% if card.errors.any? %> <div id="error_explanation" class="alert alert-danger"> <h4 class="alert-heading"><%= pluralize(card.errors.count, "error") %> prohibited this card from being saved:</h4> <ul class="mb-0"> <% card.errors.full_messages.each do |message| %> <li><%= message %></li> <% end %> </ul> </div> <% end %> <%= render 'payment' %> <% if current_customer.card.present? %> <%= link_to 'Cancel', account_card_path, class: 'btn btn-secondary' %> <% else %> <%= link_to 'Cancel', account_subscription_path, class: 'btn btn-secondary' %> <% end %> <%= f.submit 'Save My Billing Information', class: 'btn btn-primary' %> <% end %>
Version data entries
6 entries across 6 versions & 1 rubygems