一旦服务器启动,在 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 还是我必须放弃它?谢谢。