Pass parameters in periodically_call_remote?

Hi Wai,

Wai Tsang wrote:

I am still new to RoR, so please bear with this newbie question.

That's what we're here for! :wink: Seriously.

I would like to have the application in view to press result back to the controller when the periodically_call_remote is called.

Are you sure? periodically_call_remote is typically used to fetch a value from the controller to pass back to the view. It sounds like you're wanting (maybe in the next iteration of your code) to pass a user-entered value back to the controller. If that's the case, then you'll want to use observe_field.

To answer the question you asked, though ...

:url => { :action => "getlog", :user_id => '1'}

hth, Bill