Displaying 1 result from an estimated 1 matches for "invalid_key".
2007 Dec 19
3
Trapping custom exceptions in merb 0.5.0
Hi,
I have the following setup:
class Fred < Application
class InvalidKey < Merb::ControllerExceptions::Unauthorized; end
def blee
raise InvalidKey unless key
end
end
I have added a view exception template in
views/exceptions/invalid_key.html.erb
but I am not seeing the exception page being rendered ?? The request
seems to correctly
go to the right exception controller action but the exception page is
not being rendered ??
NOTE: Changing to
raise NotFound unless key
produces the same result...
What am I...