Hello, I am developing a RubyOnRails application and need to apply a layout dinamically to my controllers. The thing is I have 2 diferent layouts and, in function of a parameters retreived from the database when the page is loaded, I need my controllers to use on or the other of the two layouts. So I am looking for a way to do something like that:
class MyController < ApplicationController layout "#{session[:layout]}" ... end
Anyone know how I can do solve this?
Olivier.