Frederick Cheung wrote:
> On Jun 10, 8:39�am, Vikas Gholap <[email protected]>
> wrote:
>>
>> I can use this also @credit_card = CreditCard.new(params[:credit_card])
>>
>> But I don't want it. I want to store "expiry_date" using Date.civil or
>> Date.civil_to_jd
> 
> why not let activerecord do the hard work for you ? Anywway, the
> problem here is that you need to turn those strings into integers
> before giving them to Date.civil.
> 
> Fred

Thanks Fred, i didn't use to_i method to convert string to integer.
-- 
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to