On Fri, Oct 24, 2008 at 8:45 AM, Donnie <[EMAIL PROTECTED]> wrote:

> My question is, how do I make it so that periodically_call_remote will
> only add items that it hasn't already added? The remote action is
> querying the database for new records, but it pulls all records that
> have been created since the page was originally loaded not the last
> time the periodically_call_remote fired.

How does the action know when the page in question was loaded?

Sounds like there's a parameter being passed to define "more recent
than X", and that needs to be updated. Just a WAG :-)

FWIW,
-- 
Hassan Schroeder ------------------------ [EMAIL PROTECTED]

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

Reply via email to