I'm new to Ruby on Rails, can anyone tell me how to refresh the page.
ActionView :: Helpers :: PrototypeHelper # periodically_call_remote :
Without any values โโprovided
<%= periodically_call_remote(:url => {}) %>
With previous values โโthat were resubmitted:
<%= periodically_call_remote(:url => params) %>
You can specify: a frequency option to indicate how often to call it.
You can also configure the format.js block in the controller to display an RJS template that will only update things that can change.
Edit: This approach was deprecated with Rails 3.0
This question (the equivalent of Rails 3 for periodic_call_remote ) provides a way to achieve this in new versions of Ruby on Rails.
You can also use the below script to automatically refresh the full page ...