This is posted years after the fact, but just in case anyone arrives via
a web search:

The rescue_from method shown above will NOT catch routing errors in
Rails 3.1 and Rails 3.2.  In particular, this won't work:

    # file: app/controllers/application_controller.rb
    class ApplicationController < ActionController::Base
      protect_from_forgery
      rescue_from ActionController::RoutingError, :with => :not_found
      ...

You can read all about it (and suggested workarounds) here:
    https://github.com/rails/rails/issues/671
and here (point #3):
    
http://blog.plataformatec.com.br/2012/01/my-five-favorite-hidden-features-in-rails-3-2/

HTH.

-- 
Posted via http://www.ruby-forum.com/.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to