Forum: Ruby on Rails ActionDispatch::ShowExceptions - rails upgrade 2.3.x to 3.2.x

Posted by Amit Pandya (amit_pandya)
on 2013-02-18 18:11
(Received via mailing list)
In my rails2.3.11 app/controllers/application_controller.rb I have this

ActionDispatch::ShowExceptions::rescue_responses["ActionController::RoutingError"]
> = :not_found


now this feature is deprecated in rails-3.2.11, I am getting this server 
log

DEPRECATION WARNING: ActionDispatch::ShowExceptions.rescue_responses is
> deprecated. Please configure your exceptions using a railtie or in your
> application config instead. (called from ApplicationController at
> /home/app/demo/app/controllers/application_controller.rb:31)


I need specific help on How to set
ActionDispatch::ShowExceptions::rescue_responses in rails3.2.11, so I 
can't
get deprecated warning. I am using Jruby 1.7.2 and rails 3.2.11

Thanks
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.