handle exceptions in rails controller if Railtie is not defined(rails 2.3)