在 Rubinius 2.1.0 中使用 binding_of_caller gem 时出错

Error when using binding_of_caller gem with Rubinius 2.1.0

在服务器启动后,在 Rubinius (2.1.0) 环境中使用 gem 列表中的 binding_of_caller 会触发以下错误:

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 中继续使用 binding_of_caller 还是我必须放弃它?谢谢。

Rubinius 从 2.4.0 版本开始支持 #caller_locations2.1.0 真的很旧(2013 年 10 月 18 日),我建议直接升级到 2.4.1