specifying 2 different layouts in controller

layout "reports", :except => [:statistics]
  layout "stat_report", :only => [:statistics]

I want to specify the use of 2 different layout in my controller but
the above syntax doesn't work? How can I do this? 어떻게 하죠?

write something like this

  layout :compute_layout

protected

   def compute_layout
      if action_name=="statistics"
       return "stat_report"
     else
       return "reports"
end