[6.2] Error 500 on admin page
Created by: harryxu
I upgraded gitlab to 6.2 and the admin page not woking.
in production.log:
Started GET "/admin" for 127.0.0.1 at 2013-11-12 02:15:01 +0800
Processing by Admin::DashboardController#index as HTML
Rendered admin/dashboard/index.html.haml within layouts/admin (470.4ms)
Completed 500 Internal Server Error in 807ms
ActionView::Template::Error (undefined method `path' for nil:NilClass):
35: %hr
36: - @projects.each do |project|
37: %p
38: = link_to project.name_with_namespace, [:admin, project]
39: %span.light.pull-right
40: = time_ago_in_words project.created_at
41: ago
app/models/project.rb:170:in `to_param'
app/views/admin/dashboard/index.html.haml:38:in `block in _app_views_admin_dashboard_index_html_haml___2773604940867557025_42277980'
app/views/admin/dashboard/index.html.haml:36:in `_app_views_admin_dashboard_index_html_haml___2773604940867557025_42277980'
app/controllers/application_controller.rb:54:in `set_current_user_for_thread'
Started GET "/admin" for 127.0.0.1 at 2013-11-12 02:15:02 +0800
Processing by Admin::DashboardController#index as HTML
Rendered admin/dashboard/index.html.haml within layouts/admin (417.4ms)
Completed 500 Internal Server Error in 742ms
ActionView::Template::Error (undefined method `path' for nil:NilClass):
35: %hr
36: - @projects.each do |project|
37: %p
38: = link_to project.name_with_namespace, [:admin, project]
39: %span.light.pull-right
40: = time_ago_in_words project.created_at
41: ago
app/models/project.rb:170:in `to_param'
app/views/admin/dashboard/index.html.haml:38:in `block in _app_views_admin_dashboard_index_html_haml___2773604940867557025_42330360'
app/views/admin/dashboard/index.html.haml:36:in `_app_views_admin_dashboard_index_html_haml___2773604940867557025_42330360'
app/controllers/application_controller.rb:54:in `set_current_user_for_thread'