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.

link_to_remote_if and link_to_remote_unless

#511

This patch simply adds the two new prototype helper methods link_to_remote_if and link_to_remote_unless. They work very much like link_to_if and link_to_unless in that they take the condition first and a block.

Reported by Gumaro Melendez · June 30th, 2008 @ 09:15 AM

State: stale
Milestone: 2.x
Assigned to: nobody
Importance: none

Activity

  1. josh
    josh
    • State changed from new to stale

    September 30th, 2008 @ 05:54 PM

  2. Jason Gignac
    Jason Gignac

    -1 Maybe I'm wrong, but wouldn't it be just as easy to just use link_to_remote(params) if(condition)? This form seems to make the syntax a little needlessly complex?

    May 8th, 2010 @ 01:43 PM