2015-01-13 29 views
0

在一個Rubinius的寶石列表使用binding_of_caller(2.1.0)環境觸發以下錯誤,一旦服務器啓動:錯誤使用binding_of_caller寶石時Rubinius的2.1.0

NoMethodError at/
undefined method `caller_locations' on an instance of ActionController::RoutingError. 

(截圖:https://www.dropbox.com/s/a8a7afzgwb5aq2k/Screen%20Shot%202015-01-13%20at%2010.58.36.png?dl=0?dl=1

這裏是Gemfile中:

group :development do 
    gem 'spring' 
    gem 'better_errors' 
    gem 'binding_of_caller' 
    gem 'quiet_assets' 
end 

這是由binding_of_caller造成的,因爲時取出,萬物工作正常。

你對rbx中的bind_of_caller還有什麼想法嗎?或者我必須刪除它嗎?謝謝。

回答

1

Rubinius支持#caller_locations2.4.0版本以來。 2.1.0真的很舊(2013年10月18日),我建議直接升級到2.4.1

+0

謝謝Jiří,你是對的。升級到'2.4.1'解決了這個問題。 – htaidirt