我正在尝试在 heroku 上使用 Rails Admin。它在生产和开发中都能完美运行,但是当我尝试通过 heroku 访问 /admin 时,仪表板呈现完全空白(它具有基本的 Rails Admin 脚手架,但没有我的内容)。该网站的其余部分工作正常。heroku 日志中没有错误,如下所示:
2013-01-03T09:05:48+00:00 app[web.1]:
2013-01-03T09:05:48+00:00 app[web.1]:
2013-01-03T09:05:48+00:00 app[web.1]: Started GET "/admin/" for 76.93.177.75 at 2013-01-03 09:05:48 +0000
2013-01-03T09:05:48+00:00 app[web.1]: Processing by RailsAdmin::MainController#dashboard as HTML
2013-01-03T09:05:48+00:00 app[web.1]: Rendered vendor/bundle/ruby/1.9.1/gems/rails_admin-0.0.3/app/views/rails_admin/main/dashboard.html.haml within layouts/rails_admin/application (0.3ms)
2013-01-03T09:05:48+00:00 app[web.1]: Rendered vendor/bundle/ruby/1.9.1/gems/rails_admin-0.0.3/app/views/layouts/rails_admin/_secondary_navigation.html.haml (1.3ms)
2013-01-03T09:05:48+00:00 app[web.1]: Rendered vendor/bundle/ruby/1.9.1/gems/rails_admin-0.0.3/app/views/layouts/rails_admin/pjax.html.haml (2.1ms)
2013-01-03T09:05:48+00:00 app[web.1]: Completed 200 OK in 20ms (Views: 17.2ms | ActiveRecord: 1.4ms)
2013-01-03T09:05:48+00:00 heroku[router]: at=info method=GET path=/admin/ host=rocky-oasis-1876.herokuapp.com fwd=76.93.177.75 dyno=web.1 queue=0 wait=0ms connect=12ms service=43ms status=200 bytes=2603
2013-01-03T09:05:48+00:00 heroku[router]: at=info method=GET path=/assets/rails_admin/rails_admin-b54745219c9cfcf789963ed61310c222.css host=rocky-oasis-1876.herokuapp.com fwd=76.93.177.75 dyno=web.1 queue=0 wait=0ms connect=1ms service=29ms status=200 bytes=129747
2013-01-03T09:05:48+00:00 heroku[router]: at=info method=GET path=/assets/rails_admin/rails_admin-713b6f759f0edf80a0c69b3ced027e1e.js host=rocky-oasis-1876.herokuapp.com fwd=76.93.177.75 dyno=web.1 queue=0 wait=0ms connect=1ms service=34ms status=200 bytes=283158
2013-01-03T09:05:49+00:00 heroku[router]: at=info method=GET path=/assets/glyphicons-halflings-f6675c325532ec11a984d58e172b8e2a.png host=rocky-oasis-1876.herokuapp.com fwd=76.93.177.75 dyno=web.1 queue=0 wait=0ms connect=1ms service=7ms status=200 bytes=13826
我不确定还包括什么,因为一切都在“工作”。我正在使用 rails 3.2.9 和 rails_admin 0.0.3,以及最新的 heroku 工具带。如果有人有任何想法,我将不胜感激!