Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • G gitlabhq1
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 21
    • Issues 21
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 12
    • Merge requests 12
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • gpt
  • large_projects
  • gitlabhq1
  • Issues
  • #1739

Closed
Open
Created Oct 19, 2012 by Administrator@rootOwner

undefined method `title' for #<Commit:...>

Created by: justfalter

I noticed this in my production logs. It appears that app/views/commit/_commit.html.haml is referring to Commit#title, which does not exist.

Started GET "/test-proj/merge_requests/branch_to?ref=develop" for 127.0.0.1 at 2012-10-19 13:56:20 -0500
Processing by MergeRequestsController#branch_to as */*
  Parameters: {"ref"=>"develop", "project_id"=>"test-proj"}
  Rendered commits/_commit.html.haml (7.2ms)
  Rendered merge_requests/branch_to.js.haml (8.6ms)
Completed 500 Internal Server Error in 55ms

ActionView::Template::Error (undefined method `title' for #<Commit:0x00000006eee138>):
    7:     %strong.cgray= commit.author_name
    8:     &ndash;
    9:     = image_tag gravatar_icon(commit.author_email), class: "avatar", width: 16
    10:     = link_to_gfm truncate(commit.title, length: 50), project_commit_path(@project, id: commit.id), class: "row_title"
    11: 
    12:     %span.committed_ago
    13:       = time_ago_in_words(commit.committed_date)
  app/views/commits/_commit.html.haml:10:in `_app_views_commits__commit_html_haml__1352791362005320401_54278200'
  app/views/merge_requests/branch_to.js.haml:2:in `_app_views_merge_requests_branch_to_js_haml___362758176832554597_58143500'
Assignee
Assign to
Time tracking