trying to trigger the :except trigger handler thingy, but apparently I am in some sort of dev mode where exceptions are caught in another way(?)
This commit is contained in:
@@ -1,7 +1,10 @@
|
|||||||
class FooController < ApplicationController
|
class FooController < ApplicationController
|
||||||
layout 'bar'
|
layout 'bar', :except => 'count'
|
||||||
|
|
||||||
def index
|
def index
|
||||||
|
if request["die"]
|
||||||
|
throw Exception.new 'omg huh?'
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def count
|
def count
|
||||||
|
Reference in New Issue
Block a user