This project is archived and is in readonly mode.

#277 ✓resolved
shuber

Add page.reload functionality

Reported by shuber | May 29th, 2008 @ 07:36 PM

A small addition to the ActionView::Helpers::PrototypeHelper for use in .rjs templates or render(:update) blocks. It simply sends window.location.reload(); to the browser.

Example:

respond_to do |format|
  format.js do
    render(:update) { |page| page.reload }
  end
end

The attachment contains a tested patch.

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>

Attachments

Pages