Hi,<br><br>&nbsp;&nbsp; I have the following setup:<br><br>&nbsp;&nbsp; class Fred &lt; Application<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; class InvalidKey &lt; Merb::ControllerExceptions::Unauthorized; end<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; def blee<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; raise InvalidKey unless key<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; end<br>&nbsp;&nbsp; end<br><br>&nbsp;&nbsp;&nbsp; I have added a view exception template in views/exceptions/invalid_key.html.erb<br><br>&nbsp;&nbsp;&nbsp; but I am not seeing the exception page being rendered ?? The request seems to correctly<br>&nbsp;&nbsp;&nbsp; go to the right exception controller action but the exception page is not being rendered ??
<br><br>&nbsp;&nbsp;&nbsp; NOTE: Changing to <br>&nbsp;&nbsp;&nbsp; raise NotFound unless key <br><br>&nbsp;&nbsp;&nbsp; produces the same result...<br><br>&nbsp;&nbsp;&nbsp; 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 &#39;blee&#39;<br>/opt/local/lib/ruby/gems/1.8/gems/merb-0.5.0/lib/merb/abstract_controller.rb:87:in `send&#39;<br>/opt/local/lib/ruby/gems/1.8/gems/merb-
0.5.0/lib/merb/abstract_controller.rb:87:in `call_action&#39;<br>/opt/local/lib/ruby/gems/1.8/gems/merb-0.5.0/lib/merb/abstract_controller.rb:43:in `dispatch&#39;<br>/opt/local/lib/ruby/gems/1.8/gems/merb-0.5.0/lib/merb/controller.rb:112:in `dispatch&#39;
<br>/opt/local/lib/ruby/gems/1.8/gems/merb-0.5.0/lib/merb/dispatcher.rb:51:in `dispatch_action&#39;<br>/opt/local/lib/ruby/gems/1.8/gems/merb-0.5.0/lib/merb/dispatcher.rb:51:in `synchronize&#39;<br>/opt/local/lib/ruby/gems/1.8/gems/merb-
0.5.0/lib/merb/dispatcher.rb:51:in `dispatch_action&#39;<br>/opt/local/lib/ruby/gems/1.8/gems/merb-0.5.0/lib/merb/dispatcher.rb:35:in `handle&#39;<br>/opt/local/lib/ruby/gems/1.8/gems/merb-0.5.0/lib/merb/mongrel_handler.rb:87:in `process&#39;
<br>/opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.2/lib/mongrel.rb:159:in `process_client&#39;<br>/opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.2/lib/mongrel.rb:158:in `each&#39;<br>/opt/local/lib/ruby/gems/1.8/gems/mongrel-
1.1.2/lib/mongrel.rb:158:in `process_client&#39;<br>/opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.2/lib/mongrel.rb:285:in `run&#39;<br>/opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.2/lib/mongrel.rb:285:in `initialize&#39;
<br>/opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.2/lib/mongrel.rb:285:in `new&#39;<br>/opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.2/lib/mongrel.rb:285:in `run&#39;<br>/opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.2/lib/mongrel.rb:268:in `initialize&#39;
<br>/opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.2/lib/mongrel.rb:268:in `new&#39;<br>/opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.2/lib/mongrel.rb:268:in `run&#39;<br>/opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.2/lib/mongrel/configurator.rb:282:in `run&#39;
<br>/opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.2/lib/mongrel/configurator.rb:281:in `each&#39;<br>/opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.2/lib/mongrel/configurator.rb:281:in `run&#39;<br>/opt/local/lib/ruby/gems/1.8/gems/merb-
0.5.0/lib/merb/server.rb:628:in `cloaker_&#39;<br>/opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.2/lib/mongrel/configurator.rb:50:in `call&#39;<br>/opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.2/lib/mongrel/configurator.rb:50:in `initialize&#39;
<br>/opt/local/lib/ruby/gems/1.8/gems/merb-0.5.0/lib/merb/server.rb:619:in `new&#39;<br>/opt/local/lib/ruby/gems/1.8/gems/merb-0.5.0/lib/merb/server.rb:619:in `mongrel_start&#39;<br>/opt/local/lib/ruby/gems/1.8/gems/merb-
0.5.0/lib/merb/server.rb:548:in `run&#39;<br>/opt/local/lib/ruby/gems/1.8/gems/merb-0.5.0/bin/merb:6<br>/opt/local/bin/merb:16:in `load&#39;<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 &amp; Parsing HTTP Input took:&nbsp; seconds<br>Request Times: {:controller=&gt;&quot;Exceptions&quot;, :action_time=&gt;0.006838, :total_request_time=&gt;
0.016953, :action=&gt;&quot;invalid_key&quot;}<br>Response status: 401<br>Complete Request took: 0.016953 seconds, 58.986610039521 Requests/Second<br>