rescue'ing UnknownAction

My rescue_action_in_public method catches ActiveRecord::RecordNotFound errors perfectly find, but when I try to catch ActionController::UnknownAction, I get the following error:

nobody's rescue'd an UnknownAction error to generate a 404?

Chad wrote:

nobody's rescue'd an UnknownAction error to generate a 404?

http://groups.google.com/group/rubyonrails-talk/search?q=UnknownAction

Thanks Mark, but I read all those before and am still getting the same uninitialized constant error.

If you know of a post that I missed, please by all means let me know.

Cheers, Chad

Fair enough. Found it this time. It just took a day to soak it up then I found the :: prefix.

I didn't know a :: prefix was valid ruby code.