Error 500 on /admin/projects
Created by: monofon
Requesting /admin/projects
results in an error. To reproduce login as admin and click on Projects in the admin area. Expected to see the list of all projects.
From production.log
:
Started GET "/admin/projects" for 127.0.0.1 at 2013-10-05 12:09:20 +0200
Processing by Admin::ProjectsController#index as HTML
Rendered admin/projects/index.html.haml within layouts/admin (15.0ms)
Completed 500 Internal Server Error in 21ms
ActionView::Template::Error (undefined method `path' for nil:NilClass):
46: = public_icon
47: - else
48: = private_icon
49: = link_to project.name_with_namespace, [:admin, project]
50: .pull-right
51: = link_to 'Edit', edit_project_path(project), id: "edit_#{dom_id(project)}", class: "btn btn-small"
52: = link_to 'Destroy', [project], confirm: remove_project_message(project), method: :delete, class: "btn btn-small btn-remove"
app/models/project.rb:169:in `to_param'
app/views/admin/projects/index.html.haml:49:in `block in _app_views_admin_projects_index_html_haml___3573012306612575242_69897132549060'
app/views/admin/projects/index.html.haml:43:in `_app_views_admin_projects_index_html_haml___3573012306612575242_69897132549060'