I have tried one or two things similar, but can't seem to be able to
set the flag - either that or it is being ignored

my method looks like this

def checkSubscription
  t1 = self.end_date
  t2 = Date.today
  days = t1 - t2
  time_until_expiry = days.to_i

    while self.notified == false && time_until_expiry == 30
        UserMailer.deliver_subexpiring(self)
        self.notified = true
        end

  end

'notified' is one of my fields in Subscription, but doesn't seem to be
set to true after the method has completed - otherwise the next time I
refresh the page I would expect the loop to end at the first line--
while self.notified == false

I may be having one of those moments where I can't see something
glaringly obvoius!!

-- 
You received this message because you are subscribed to the Google Groups "Hobo 
Users" 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/hobousers?hl=en.

Reply via email to