Ruby on Rails
Sunday, May 30, 2010
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" <lists@ruby-forum.com> 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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment