On Mon, Dec 5, 2011 at 3:13 AM, Mauro <[email protected]> wrote: > To do this I am thinking to set a session variable called, for > example, session[:intra] or session[:inter]. > The choice If to use session[:intra][ or session[:inter] is done looking at > url. > If localhost/intra then I use "intra" layout and set session[:intra], > if localhost/inter I use "inter" layout and set session[:inter]. > What do you think about?
Wouldn't it be simpler to have something like session[:layout] and only have one place to check? :-) (You could set it to "application" at login, as well.) -- Hassan Schroeder ------------------------ [email protected] http://about.me/hassanschroeder twitter: @hassan -- 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.

