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.

current_page? in a partial template does not work.

#4419

The current controller and action passed into current_page? are not found when current_page? is invoked inside of a partial template.

Reported by jolohaga · April 16th, 2010 @ 09:23 PM

State: duplicate
Milestone: none
Assigned to: nobody
Importance: Low

Activity

  1. Lenary
    Lenary

    I'm finding this bug a little hard to pin down, but indeed it exists (i think). i need to work out exactly how to get it fixed though.

    April 16th, 2010 @ 10:38 PM

  2. Lenary
    Lenary

    Aha, i think it might have something to do with this ticket: #4391 url_for doesn't like HashWithIndifferentAccess

    could you please give a few more details as to what exactly is going wrong?

    April 16th, 2010 @ 10:41 PM

  3. Lenary
    Lenary
    • Tag set to duplicate

    Just tried that patch above, and it solves your problem as well as others. it should be approved soon.

    April 16th, 2010 @ 10:49 PM

  4. Rizwan Reza
    Rizwan Reza
    • Tag cleared.
    • State changed from new to duplicate

    May 15th, 2010 @ 03:09 PM