[Rails] custom error pages

2009-07-13 Thread Rabi Khadka
I need to add custom error pages in my site. But i noticed that i need rescue.rb file in lib/action_controller folder. Can somebody help me how to get that file and how to implement custom error pages please -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~-

[Rails] custom error pages-- which exceptions to catch?

2009-05-21 Thread rafe
Hi all, I implemented custom 404 and 500 error pages using rescue_from according to an example I found at http://blog.ubrio.us/code/rails-22-custom-error-pages-with-exception-loggable/ Here's my version: unless ActionController::Base.consider_all_requests_local rescue_from ActiveRecord::R