I'm wondering if I can do action specific layouts in an elegant way like
class AuthorsController < ApplicationController
before_filter :is_admin?, :only => [:new, :create, :edit, :update,
layout "admin", :except => [:index, :show]
actions :index, :show, :new, :create, :edit, :update
I'm aware that you can do it in each action with:
render :layout => "layout"
However, in a need to keep it clean I don't want to write that. Looking
at the layout method source, it appears that it should accept options.
However, if I set :only or :except the layout is only correctly "admin"
for the ones specified (or excepted), and the others render without a