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

Closed
Open
Created Jun 19, 2012 by Administrator@rootOwner

500 on viewing snippet

Created by: brototyp

If I want to view a snippet i get a 500 error.

The log is the following:

Started GET "/alp4/snippets/1" for __IP__ at 2012-06-19 21:25:46 +0200
Processing by SnippetsController#show as HTML
  Parameters: {"project_id"=>"alp4", "id"=>"1"}
  Rendered projects/_project_head.html.haml (77.8ms)
  Rendered snippets/show.html.haml within layouts/project (296.2ms)
Completed 500 Internal Server Error in 337ms

ActionView::Template::Error (TypeError: function() takes at least 2 arguments (0 given)):
    15:         %strong= @snippet.file_name
    16:       .view_file_content
    17:         %div{:class => current_user.dark_scheme ? "black" : ""}
    18:           = raw @snippet.colorize(options: { linenos: 'True'})
    19: 
    20: = render "notes/notes", :tid => @snippet.id, :tt => "snippet"
  app/views/snippets/show.html.haml:18:in `_app_views_snippets_show_html_haml__207708678030828589_101114280'
Assignee
Assign to
Time tracking