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
  • #2129

Closed
Open
Created Nov 30, 2012 by Administrator@rootOwner

Exception undefined method `milestone_id'

Created by: RubingHan

I upgraded gitlab from 3.0.3 to 3.1.0 in accordance with https://github.com/gitlabhq/gitlabhq/wiki/From-3.0-to-3.1. But exception occured when I create merge-request:


Started GET "/test/merge_requests/new" for 127.0.0.1 at 2012-11-30 10:33:54 +0800
Processing by MergeRequestsController#new as HTML
  Parameters: {"project_id"=>"test"}
  Rendered merge_requests/_form.html.haml (27.1ms)
  Rendered merge_requests/new.html.haml within layouts/project_resource (29.7ms)
Completed 500 Internal Server Error in 51ms

ActionView::Template::Error (undefined method `milestone_id' for #):
    43:           = f.label :milestone_id do
    44:             %i.icon-time
    45:             Milestone
    46:           .input= f.select(:milestone_id, @project.milestones.active.all.collect {|p| [ p.title, p.id ] }, { in
clude_blank: "Select milestone" }, {class: 'chosen'})
    47:
    48:   .control-group
    49:
  app/views/merge_requests/_form.html.haml:46:in `block in _app_views_merge_requests__form_html_haml___2955564168459621
257_60855980'
  app/views/merge_requests/_form.html.haml:1:in `_app_views_merge_requests__form_html_haml___2955564168459621257_608559
80'
  app/views/merge_requests/new.html.haml:3:in `_app_views_merge_requests_new_html_haml___2714123960864570756_60837980'
Assignee
Assign to
Time tracking