Exception not caught while in view

I’m running Rails 2.0.2.

My controller is subclassed from RetainController (which is subclassed
from ApplicationController).

Retain Controller has:

rescue_from Retain::LogonFailed, :with => :logon_failed
rescue_from Retain::FailedMarkedTrue, :with => :failed_marked_true

It works if the exception occurs before I start processing the view. If
I get the exception while in the view, (this is in development mode),
Rails will give me the usual exception page.

I thought, maybe, I was done with the controller but that is not the
case. The controller is still on the stack (way down deep). So, is
something else catching the exception – maybe in the erb processing?

Thanks,
pedz

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs