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

Closed
Open
Created Feb 27, 2013 by Administrator@rootOwner

500 when going to team page

Created by: Zhann

When I click on a link to a team page, I get the following error: "undefined method `of_user_team' for []:ActiveRecord::Relation"

Full stacktrace:

Started GET "/teams/stagiaires-2013" for 127.0.0.1 at 2013-02-27 10:57:48 +0100
Processing by TeamsController#show as HTML
  Parameters: {"id"=>"stagiaires-2013"}
  Rendered teams/_projects.html.haml (19.1ms)
  Rendered teams/show.html.haml within layouts/user_team (24.1ms)
  Rendered layouts/_head.html.haml (1.9ms)
  Rendered layouts/_flash.html.haml (0.2ms)
  Rendered layouts/_search.html.haml (209.5ms)
  Rendered layouts/_init_auto_complete.html.haml (8.3ms)
  Rendered layouts/_head_panel.html.haml (224.8ms)
Completed 500 Internal Server Error in 267ms

ActionView::Template::Error (undefined method `of_user_team' for []:ActiveRecord::Relation):
    13:         = nav_link(path: 'teams#issues') do
    14:           = link_to issues_team_path(@team) do
    15:             Issues
    16:             %span.count= Issue.opened.of_user_team(@team).count
    17: 
    18:         = nav_link(path: 'teams#merge_requests') do
    19:           = link_to merge_requests_team_path(@team) do
  app/views/layouts/user_team.html.haml:16:in `block (2 levels) in _app_views_layouts_user_team_html_haml__3213711913120424664_49623080'
  app/views/layouts/user_team.html.haml:14:in `block in _app_views_layouts_user_team_html_haml__3213711913120424664_49623080'
  app/helpers/tab_helper.rb:69:in `nav_link'
  app/views/layouts/user_team.html.haml:13:in `_app_views_layouts_user_team_html_haml__3213711913120424664_49623080'
Assignee
Assign to
Time tracking