class Things < Application # throws a 500, but the server stays up def error_it @thing = Thing.first @thing2 = Thing.get! 99999 @thing2.do_something display @thing end # crashes the thread, bringing the server down def bust_it @thing = Thing.first run_later do @thing2 = Thing.get! 99999 @thing2.do_something end display @thing end # catch the error to keep the thread from dying def save_it @thing = Thing.first run_later do begin @thing2 = Thing.get! 99999 @thing2.increment rescue # rescue code end end display @thing end end