]> git.openstreetmap.org Git - rails.git/commitdiff
Explicitly disable the layout for actions which don't want it
authorTom Hughes <tom@compton.nu>
Wed, 15 Feb 2012 10:08:43 +0000 (10:08 +0000)
committerTom Hughes <tom@compton.nu>
Wed, 15 Feb 2012 17:48:17 +0000 (17:48 +0000)
app/controllers/site_controller.rb

index f0c686c9f4716433a7d60ba09b91626c5bc6d9b8..cf4465b9c5b185bcdd3b760073083b51c1b842aa 100644 (file)
@@ -1,5 +1,6 @@
 class SiteController < ApplicationController
   layout 'site', :except => [:key, :permalink]
 class SiteController < ApplicationController
   layout 'site', :except => [:key, :permalink]
+  layout false, :only => [:key, :permalink]
 
   before_filter :authorize_web
   before_filter :set_locale
 
   before_filter :authorize_web
   before_filter :set_locale