This project is archived and is in readonly mode.

#2555 ✓stale

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

Reported by rubynewbie | April 24th, 2009 @ 09:35 AM | in 3.x

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 -

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

Please advise.


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=""></a>