我有這樣的代碼在application controller: # Method to capture and handle all exceptions
rescue_from Exception do |ex|
Rails.logger.debug ex
do_stuff(ex)
end
我想這個進入一個模塊,然後: class ApplicationControl
的代碼: threads = []
Thread.abort_on_exception=true
begin # throw exceptions in threads so we can see them
threads << Thread.new{@a = MyClass.m1}
threads << Thread.new{@b = MyClass.m2}
t
我是個讓在軌使用命令4.2.0(非測試版)的錯誤 rails g
錯誤: Could not find activesupport-4.2.0 in any of the sources
Run `bundle install` to install missing gems.
但運行捆綁安裝我有activesupport- 4.2.0安裝... Using thread_safe 0.