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.

Dynamic layout - self.class.layout doesn't work in 2.3.2

#2555

I have upgraded to 2.3.2 and I am determining layouts based on URL in the application.

In application_controller, get_layout_details gets the layout information and sets self.class.layout (It is called before every call as it is set as before_filter for application_controller and working in earlier version)

Home page renders fine. When user makes a search, a 302 redirect happens internally and then there is no layout on results page. Forcing a layout :file_name in searchresults_controller is also not working.

I found one other person talking about a hack to make it work -

http://jystewart.net/process/200...

I am not using the theme plugin, so what should I do to make it work in rails 2.3.2

Please advise.

Thanks

Reported by rubynewbie · April 24th, 2009 @ 09:35 AM

State: stale
Milestone: 3.x
Assigned to: Ryan Bigg Ryan Bigg
Importance: none

Activity

  1. Steve St. Martin
    Steve St. Martin
    • Assigned user set to Ryan Bigg

    Can you provide more detail as to what it is your trying to accomplish and/or code examples? for now can probably mark as incomplete or needs-more-info

    April 16th, 2010 @ 01:10 AM

  2. Ryan Bigg
    Ryan Bigg
    • State changed from new to incomplete

    April 16th, 2010 @ 01:29 AM

  3. Jeremy Kemper
    Jeremy Kemper
    • Milestone changed from 2.x to 3.x

    May 4th, 2010 @ 06:48 PM

  4. Rohit Arondekar
    Rohit Arondekar
    • State changed from incomplete to stale
    • Importance changed from to

    Marking ticket as stale. If this is still an issue please leave a comment with suggested changes, creating a patch with tests, rebasing an existing patch or just confirming the issue on a latest release or master/branches.

    October 14th, 2010 @ 10:49 AM