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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouprubyonrails-talk @
categoriesrubyonrails
postedAug 10, '12 at 7:32p
activeAug 10, '12 at 7:32p
posts1
users1
websiterubyonrails.org
irc#RubyOnRails

1 user in discussion

Fearless Fool: 1 post

People

Translate

site design / logo © 2022 Grokbase