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.
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.