class FooController < ApplicationController
  layout :figure_out_layout

  def index
  end

  def pretty
  end

  def figure_out_layout
    if action_name =~ /pretty/
      'pretty'
    else
      'standard'
    end
  end

end