Difference between local and live server...

Joe Peck
Thu, 30 Aug 2007 15:56:49 -0000

Yello,

I''m setting my layout in a before_filter.

Here is what I have in application.rb:
before_filter :find_current_site

layout $layout

def find_current_site

  if blahblahblah
    $layout = "joe1"
  else
    $layout = "joe2"
  end

end

It''s working on my local mongrel server, but on my live server (also
mongrel) I always end up with no layout, no matter how many times I
refresh.

Does anyone know what is going on here?