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 )

这是宝石文件:

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

这是由 binding_of_caller 引起的,因为删除后,一切正常。

你知道如何在 rbx 中仍然使用 binding_of_caller 还是我必须放弃它?谢谢。

4

1 回答 1

1

Rubinius#caller_locations自该2.4.0版本支持。真的很旧(2013年2.1.010 月 18 日),我建议直接升级到2.4.1.

于 2015-01-13T12:32:24.127 回答