diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 9e401942..6b3de790 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -5,6 +5,8 @@ class ApplicationController < ActionController::Base helper :all # include all helpers, all the time protect_from_forgery # See ActionController::RequestForgeryProtection for details + layout :default_or_defined + # Scrub sensitive parameters from your log # filter_parameter_logging :password @@ -13,4 +15,8 @@ def tags format.json { render :json => @tags } end end + + def default_or_defined + (action_name == 'new')? 'no_sidebar' : 'application' + end end