I’m building somewhat of a billing system which needs to set next
renewal dates for each account package. In my account_package model I
class AccountPackage < ActiveRecord::Base
self.next_renewal = next_renewal_date
Basically, my Cycle model has a frequency column where I’ve stored the
strings :months => 1, :years => 1, :years => 2, etc., hoping I could
just use the value in the database within the Time.now.advance()
method. It doesn’t work. Each time the record saves, I just get the
value of Time.now in there.
Any ideas what I’m doing wrong?