I would use a scheduler for this kind of stuff. A pure ruby solution
is rufus scheduler:
http://github.com/jmettraux/rufus-scheduler
With rufus scheduler you can schedule a routine that runs every day at
a given hour and decrements every persons points by 0.5.

On May 30, 8:35 pm, Becky Russoniello <li...@ruby-forum.com> wrote:
> Hi Tim,
>
> Thanks for responding.  Sorry if this is a dumb question, but what do
> you mean by database job?
>
> This is going to be a ranked list (current points value determines the
> ranking), and I'd like users to be able to view the list without being
> logged in.
>
> Tim Lovett wrote:
> > 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.
>
> --
> Posted viahttp://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-t...@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to