Is it possible to reset a default layout from within a before_filter method in Rails 3?
I have the following as my contacts_controller.rb:
cla
From Rails guides, 2.2.13.2 Choosing Layouts at Runtime:
2.2.13.2 Choosing Layouts at Runtime
class ProductsController < ApplicationController layout :products_layout private def products_layout @current_user.special? ? "special" : "products" end end