Created
December 21, 2010 11:28
-
-
Save petros/749818 to your computer and use it in GitHub Desktop.
Credit card fields (Formtastic)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<% f.inputs :name => "Payment" do %> | |
<%= f.input :first_name %> | |
<%= f.input :last_name %> | |
<%= f.input :card_type, :label => :card_type, :collection => [["Visa", "visa"], ["MasterCard", "master"], ["Discover", "discover"], ["American Express", "american_express"]] %> | |
<%= f.input :card_number %> | |
<%= f.input :card_verification, :label => 'Card Verification Value (CVV)' %> | |
<%= f.input :card_expires_on, :discard_day => true, :start_year => Date.today.year, :end_year => (Date.today.year+10), :add_month_numbers => true %> | |
<% end %> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment