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 12 years ago by Administrator@rootOwner
  • New issue

  • Report abuse

  • New issue

  • Report abuse

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

Closed

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'

Linked issues
...

    Related merge requests

    • Administrator
      Administrator @root · 12 years ago
      Owner

      Created by: rspeicher

      Looks like the partial's being passed a raw Commit object and not a CommitDecorator.

      By Administrator on 2012-10-20T04:44:00 (imported from GitLab project)

    • Administrator
      Administrator @root · 12 years ago
      Owner

      Created by: dzaporozhets

      Please provide an application version (Help page of your app)

      By Administrator on 2012-10-21T09:16:04 (imported from GitLab project)

    • Administrator
      Administrator @root · 12 years ago
      Owner

      Created by: justfalter

      This was in 2.8.2 5ed24ed.

      By Administrator on 2012-10-22T20:38:20 (imported from GitLab project)

    • Administrator
      Administrator @root · 12 years ago
      Owner

      Created by: vsizov

      ;) I'll close it

      By Administrator on 2012-10-22T21:29:05 (imported from GitLab project)

    • You're only seeing other activity in the feed. To add a comment, switch to one of the following options.
    Please register or sign in to reply
    0 Assignees
    Assign to
    Milestone
    No milestone
    None
    None
    Time tracking
    Due date
    None
    None
    1
    Labels
    Awaiting developer action/feedback
    Assign labels
    • No matching results
    • Manage project labels
    Confidentiality
    Not confidential

    You are going to turn on confidentiality. Only team members with at least Reporter access will be able to see and leave comments on the issue.

    Lock issue
    Unlocked
    participants
    Reference: