0

我找不到问题的根源。

我正在使用 Rails 3.1.1 和 ActiveAdmin 0.4.0。Web 服务器是 WEBrick 1.3.1。

每个请求,ActiveAdmin 文件都显示在日志中。例如:

Started GET "/admin/" for 127.0.0.1 at 2012-04-17 21:28:37 +0200
[nil, ["path/to/the/app/admin", "path/to/the/app/admin/modela.rb", "path/to/the/app/admin/modelb.rb", "path/to/the/app/admin/modelc.rb", "path/to/the/app/admin/modeld.rb", "path/to/the/app/admin/modele.rb", "path/to/the/app/admin/modelf.rb", "path/to/the/app/admin/modelg.rb", "path/to/the/app/admin/modelh.rb", "path/to/the/app/admin/modeli.rb"]]
  Processing by Admin::DashboardController#index as HTML
Completed 401 Unauthorized in 7ms

app/admin/dashboards.rb:

ActiveAdmin::Dashboards.build do
end

无论页面如何,ActiveAdmin 文件都会显示在日志中……无论环境如何(开发、登台、生产……)

另一个页面,另一个例子:

[...]

Started GET "/assets/jquery-1.7.1.min.js?body=1" for 127.0.0.1 at 2012-04-18 12:37:40 +0200
[nil, ["path/to/the/app/admin", "path/to/the/app/admin/modela.rb", "path/to/the/app/admin/modelb.rb", "path/to/the/app/admin/modelc.rb", "path/to/the/app/admin/modeld.rb", "path/to/the/app/admin/modele.rb", "path/to/the/app/admin/modelf.rb", "path/to/the/app/admin/modelg.rb", "path/to/the/app/admin/modelh.rb", "path/to/the/app/admin/modeli.rb"]]
Served asset /jquery-1.7.1.min.js - 304 Not Modified (0ms)


Started GET "/assets/jquery.ui.datepicker-fr.js?body=1" for 127.0.0.1 at 2012-04-18 12:37:40 +0200
[nil, ["path/to/the/app/admin", "path/to/the/app/admin/modela.rb", "path/to/the/app/admin/modelb.rb", "path/to/the/app/admin/modelc.rb", "path/to/the/app/admin/modeld.rb", "path/to/the/app/admin/modele.rb", "path/to/the/app/admin/modelf.rb", "path/to/the/app/admin/modelg.rb", "path/to/the/app/admin/modelh.rb", "path/to/the/app/admin/modeli.rb"]]
Served asset /jquery.ui.datepicker-fr.js - 304 Not Modified (0ms)


Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2012-04-18 12:37:40 +0200
[nil, ["path/to/the/app/admin", "path/to/the/app/admin/modela.rb", "path/to/the/app/admin/modelb.rb", "path/to/the/app/admin/modelc.rb", "path/to/the/app/admin/modeld.rb", "path/to/the/app/admin/modele.rb", "path/to/the/app/admin/modelf.rb", "path/to/the/app/admin/modelg.rb", "path/to/the/app/admin/modelh.rb", "path/to/the/app/admin/modeli.rb"]]
Served asset /jquery_ujs.js - 304 Not Modified (0ms)

[...]

看,在每个请求中都有:

[nil, ["path/to/the/app/admin", "path/to/the/app/admin/modela.rb", "path/to/the/app/admin/modelb.rb", "path/to/the/app/admin/modelc.rb", "path/to/the/app/admin/modeld.rb", "path/to/the/app/admin/modele.rb", "path/to/the/app/admin/modelf.rb", "path/to/the/app/admin/modelg.rb", "path/to/the/app/admin/modelh.rb", "path/to/the/app/admin/modeli.rb"]]

有任何想法吗?

4

2 回答 2

0

看起来调试可能在堆栈中的某个位置打开。

在不进行进一步的盲调试的情况下,您能否提供有关此问题的更多信息 - 例如:

  • 你安装了什么版本的 Rails
  • 您安装了哪个版本的 ActiveAdmin
  • Admin::DashboardController 代码
于 2012-04-18T05:34:07.473 回答
0

看来这是来自 AA 团队的“调试线”。见:https ://github.com/gregbell/active_admin/pull/952

sferik 在此提交中将其删除: https ://github.com/sferik/active_admin/commit/8bec274d4d0f3d5592c27c18ab8332b555ff8102

于 2013-01-28T16:13:58.047 回答