This project is archived and is in readonly mode.

#2555 ✓stale
rubynewbie

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 -

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

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="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>

Pages