Id suggest using a database job but you could always just store when you
last decreased it date and then on sign in do the decrease. If you plan on
showing other users the points you'd need the job.

On May 30, 2010 12:37 PM, "Becky Russoniello" <[email protected]> wrote:

I have a Person model with a points attribute.  For the most part,
points values will be incremented and decremented via user votes.
However, I'd also like to decrement a Person's points by half a point
each day.

How do I automatically decrement the value once per day?

Your help is greatly appreciated :)

Becky
--
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]<rubyonrails-talk%[email protected]>
.
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.

-- 
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