Skip to content

ActionView::Template::Error (undefined method `commit_count' for #<Project:0x00000005fd0b38>):

Processing by ProjectsController#show as HTML
  Parameters: {"namespace_id"=>"xxx", "id"=>"yyy"}
Completed 500 Internal Server Error in 574ms (ActiveRecord: 19.8ms)

ActionView::Template::Error (undefined method `commit_count' for #<Project:0x00000005fd0b38>):
    15:   %ul.nav.nav-pills
    16:     %li
    17:       = link_to namespace_project_commits_path(@project.namespace, @project, @ref || @repository.root_ref) do
    18:         = pluralize(number_with_delimiter(@project.commit_count), 'commit')
    19:     %li
    20:       = link_to namespace_project_branches_path(@project.namespace, @project) do
    21:         = pluralize(number_with_delimiter(@repository.branch_names.count), 'branch')
  app/views/projects/show.html.haml:18:in `block in _app_views_projects_show_html_haml__3385434577347977332_118063820'
  app/views/projects/show.html.haml:17:in `_app_views_projects_show_html_haml__3385434577347977332_118063820'
  app/controllers/projects_controller.rb:85:in `block (2 levels) in show'
  app/controllers/projects_controller.rb:79:in `show'

GitLab 7.13.0 7d8636bd, Debian 7.8