diff --git a/cookbook/015/hodgepodge/app/controllers/foo_controller.rb b/cookbook/015/hodgepodge/app/controllers/foo_controller.rb index cc2ac14..64959f8 100644 --- a/cookbook/015/hodgepodge/app/controllers/foo_controller.rb +++ b/cookbook/015/hodgepodge/app/controllers/foo_controller.rb @@ -1,7 +1,10 @@ class FooController < ApplicationController - layout 'bar' + layout 'bar', :except => 'count' def index + if request["die"] + throw Exception.new 'omg huh?' + end end def count