我们有一个应用程序,我们正在从Rails 3.2.x升级到4.1.x.经过大量调整,该应用程序现在运行,但尝试加载ActiveAdmin仪表板,我们收到此错误:
Showing /Users/xxx/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activeadmin-1.0.0.pre1/app/views/active_admin/page/index.html.arb where line #2 raised:
undefined method `call' for #<Pano::ActiveRecord_Relation:0x007fd869a3c138>
Extracted source (around line #2):
1
insert_tag active_admin_application.view_factory["page"]
Rails.root: /Users/xxx/Google Drive/Code/xxxx/xxxx-rails
导致崩溃的代码在ActiveAdmin代码本身中:
/Users/xxxx/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activeadmin-1.0.0.pre1/app/views/active_admin/page/index.html.arb
我不确定我在这里缺少什么,有人可以指出我正确的方向吗?