add payment views, styling and its helper methods
This commit is contained in:
parent
81ef41be8b
commit
14594c7a4d
7 changed files with 118 additions and 0 deletions
13
app/helpers/payments_helper.rb
Normal file
13
app/helpers/payments_helper.rb
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
module PaymentsHelper
|
||||
def months
|
||||
(1..12).collect{|n| ["#{n} - #{Date::MONTHNAMES[n]}", n]}
|
||||
end
|
||||
|
||||
def years
|
||||
(Date.current.year..Date.current.year + 15)
|
||||
end
|
||||
|
||||
def card_types
|
||||
[[['Visa', 'visa'], ['MasterCard', 'master'], ['Discover', 'discover'], ['American Express', 'american_express']]]
|
||||
end
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue