0

問題の原因がわかりません。

Rails3.1.1とActiveAdmin0.4.0を使用しています。WebサーバーはWEBrick1.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

これは AA チームからの「デバッグ ライン」のようです。参照: https://github.com/gregbell/active_admin/pull/952

このコミットで sferik によって削除されました: https://github.com/sferik/active_admin/commit/8bec274d4d0f3d5592c27c18ab8332b555ff8102

于 2013-01-28T16:13:58.047 に答える
0

スタックのどこかでデバッグがオンになっているようです。

さらにブラインド デバッグを実行せずに、この問題に関する詳細情報を提供していただけますか。例:

  • インストールした Rails のバージョン
  • インストールした ActiveAdmin のバージョン
  • Admin::DashboardController コード
于 2012-04-18T05:34:07.473 に答える