Sha256: 158b70bcec42a15f2db67d05a55776dd476a21a961734ea2604062736b344603

Contents?: true

Size: 574 Bytes

Versions: 4

Compression:

Stored size: 574 Bytes

Contents

<%= form_for @credit_card, html: {id: 'credit-card-form1'} do |f| %>
  <%= f.text_field :credit_card_no, id: 'card-no-1' %>
  <%= f.credit_card_type_field :card_type %>  
<% end %>

<%= form_for @credit_card, html: {id: 'credit-card-form2'} do |f| %>
  <%= f.text_field :card_number, id: 'card-no-2' %>
  <%= f.credit_card_type_field :card_type, card_number_field_name: 'card_number' %>  
<% end %>

<%= form_tag '', id: 'credit-card-form3' do %>
  <%= text_field_tag 'credit_card_no', '', id: 'card-no-3' %>
  <%= credit_card_type_field_tag('credit_card_type') %>
<% end %>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
credit_card_type_field-1.5 spec/dummy/app/views/credit_cards/new.html.erb
credit_card_type_field-1.4 spec/dummy/app/views/credit_cards/new.html.erb
credit_card_type_field-1.3 spec/dummy/app/views/credit_cards/new.html.erb
credit_card_type_field-1.2 spec/dummy/app/views/credit_cards/new.html.erb