Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

Add page.reload functionality

#277

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.

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

State: resolved
Milestone: none
Assigned to: nobody
Importance: none

Activity

  1. Repository
    Repository
    • State changed from new to resolved

    (from [1b0654ea41d15552c19f767570d4f551d617e742]) Ensure script/plugin installs ssh/git plugins. [#277 state:resolved]

    Signed-off-by: Pratik Naik

    http://github.com/rails/rails/co...

    May 29th, 2008 @ 08:24 PM

  2. Pratik
    Pratik
    • State changed from resolved to open

    Entered wrong ticket number. Silly me.

    May 29th, 2008 @ 08:28 PM

  3. Chris Cherry
    Chris Cherry

    Seems useful, and its a pretty tiny change with only 3 lines of code and 4 for tests =) +1

    May 30th, 2008 @ 03:06 AM

  4. Repository
    Repository
    • State changed from open to resolved

    (from [30a0ebb3eb9fd4c8e4401bcaa4887eb1ce95defa]) Add RJS#page.reload. [#277 state:resolved]

    Signed-off-by: Pratik Naik

    http://github.com/rails/rails/co...

    June 4th, 2008 @ 02:16 PM