I am using active model for payment process in my application , but i am not able to add field for credit card expiration date, since it throws error as below undefined method `card_expiration_date(3i)='.
In my model:
class CartServer
include ActiveModel::Validation
include ActiveModel::Conversion
extend ActiveModel::Naming
attr_accessor :card_expiration_date
In view:
f.date_select(
:card_expiration_date,
:add_month_numbers => false,
:discard_day => true,
:start_year => (Date.today.year-10),
:end_year => (Date.today.year+10),
:order=>[ :month,:year]
)