Hi,<br><br> I have the following setup:<br><br> class Fred < Application<br> class InvalidKey < Merb::ControllerExceptions::Unauthorized; end<br><br> def blee<br> raise InvalidKey unless key<br>
end<br> end<br><br> I have added a view exception template in views/exceptions/invalid_key.html.erb<br><br> but I am not seeing the exception page being rendered ?? The request seems to correctly<br> go to the right exception controller action but the exception page is not being rendered ??
<br><br> NOTE: Changing to <br> raise NotFound unless key <br><br> produces the same result...<br><br> What am I missing ?<br><br><br>Thanks,<br>Fernand<br><br><br>Stack:<br><br><br>Unable to connect. Invalid credentials - (InvalidKey)
<br>/Users/fgaliana/work/new_ci/projects/domain/applications/fred/trunk/app/controllers/fred.rb:19:in 'blee'<br>/opt/local/lib/ruby/gems/1.8/gems/merb-0.5.0/lib/merb/abstract_controller.rb:87:in `send'<br>/opt/local/lib/ruby/gems/1.8/gems/merb-
0.5.0/lib/merb/abstract_controller.rb:87:in `call_action'<br>/opt/local/lib/ruby/gems/1.8/gems/merb-0.5.0/lib/merb/abstract_controller.rb:43:in `dispatch'<br>/opt/local/lib/ruby/gems/1.8/gems/merb-0.5.0/lib/merb/controller.rb:112:in `dispatch'
<br>/opt/local/lib/ruby/gems/1.8/gems/merb-0.5.0/lib/merb/dispatcher.rb:51:in `dispatch_action'<br>/opt/local/lib/ruby/gems/1.8/gems/merb-0.5.0/lib/merb/dispatcher.rb:51:in `synchronize'<br>/opt/local/lib/ruby/gems/1.8/gems/merb-
0.5.0/lib/merb/dispatcher.rb:51:in `dispatch_action'<br>/opt/local/lib/ruby/gems/1.8/gems/merb-0.5.0/lib/merb/dispatcher.rb:35:in `handle'<br>/opt/local/lib/ruby/gems/1.8/gems/merb-0.5.0/lib/merb/mongrel_handler.rb:87:in `process'
<br>/opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.2/lib/mongrel.rb:159:in `process_client'<br>/opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.2/lib/mongrel.rb:158:in `each'<br>/opt/local/lib/ruby/gems/1.8/gems/mongrel-
1.1.2/lib/mongrel.rb:158:in `process_client'<br>/opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.2/lib/mongrel.rb:285:in `run'<br>/opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.2/lib/mongrel.rb:285:in `initialize'
<br>/opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.2/lib/mongrel.rb:285:in `new'<br>/opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.2/lib/mongrel.rb:285:in `run'<br>/opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.2/lib/mongrel.rb:268:in `initialize'
<br>/opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.2/lib/mongrel.rb:268:in `new'<br>/opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.2/lib/mongrel.rb:268:in `run'<br>/opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.2/lib/mongrel/configurator.rb:282:in `run'
<br>/opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.2/lib/mongrel/configurator.rb:281:in `each'<br>/opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.2/lib/mongrel/configurator.rb:281:in `run'<br>/opt/local/lib/ruby/gems/1.8/gems/merb-
0.5.0/lib/merb/server.rb:628:in `cloaker_'<br>/opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.2/lib/mongrel/configurator.rb:50:in `call'<br>/opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.2/lib/mongrel/configurator.rb:50:in `initialize'
<br>/opt/local/lib/ruby/gems/1.8/gems/merb-0.5.0/lib/merb/server.rb:619:in `new'<br>/opt/local/lib/ruby/gems/1.8/gems/merb-0.5.0/lib/merb/server.rb:619:in `mongrel_start'<br>/opt/local/lib/ruby/gems/1.8/gems/merb-
0.5.0/lib/merb/server.rb:548:in `run'<br>/opt/local/lib/ruby/gems/1.8/gems/merb-0.5.0/bin/merb:6<br>/opt/local/bin/merb:16:in `load'<br>/opt/local/bin/merb:16<br>Setting up session<br>Finalize session<br>Time spent in Exceptions#invalid_key action:
0.006838 seconds<br>Routing to controller: Exceptions action: invalid_key<br>Route Recognition & Parsing HTTP Input took: seconds<br>Request Times: {:controller=>"Exceptions", :action_time=>0.006838, :total_request_time=>
0.016953, :action=>"invalid_key"}<br>Response status: 401<br>Complete Request took: 0.016953 seconds, 58.986610039521 Requests/Second<br>