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
  • Merge requests
  • !4176

Merged
Created Jun 03, 2013 by Administrator@rootOwner

500 error on showing not existed commit fixed

  • Overview 2
  • Commits 1
  • Changes 1

Created by: Andrew8xx8

From Rails Guides

Rails will start the rendering process to dump the @book variable into 
the special_show view. But this will not stop the rest of the code in the 
show action from running, and when Rails hits the end of the action, it 
will start to render the show view – and throw an error.

In this case we need to place return dirrectly or use exceptions here.

Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: github/fork/Andrew8xx8/patch-2