2010-04-17 99 views

回答

4

找到一个solution。在ApplicationController中,添加:

rescue_from Exception, :with => :rescue_all_exceptions if RAILS_ENV == 'production' 

def rescue_all_exceptions(exception) 
    case exception 
    # do production-ey exception stuff 
    end 
end 

我很想听听其他选项...