404 error on browsing any Merge Requests
Created by: siuying
When I browse merge requests page, I would always see "404 - The page you were looking for doesn't exist.", but when I check the production.log, it reveals following 500 error:
Started GET "/xxx/merge_requests/8" for 203.185.44.176 at 2013-02-28 22:14:25 +0800
Processing by MergeRequestsController#show as HTML
Parameters: {"project_id"=>"xxx", "id"=>"8"}
Rendered votes/_votes_block.html.haml (1.9ms)
Rendered merge_requests/show/_mr_title.html.haml (9.1ms)
Rendered merge_requests/show/_how_to_merge.html.haml (0.3ms)
Rendered merge_requests/show/_mr_box.html.haml (16.8ms)
Rendered merge_requests/show/_mr_accept.html.haml (10.3ms)
Rendered commits/_commit.html.haml (2.8ms)
Rendered merge_requests/show/_commits.html.haml (3.3ms)
Rendered merge_requests/_show.html.haml (43.2ms)
Rendered merge_requests/show.html.haml within layouts/project_resource (43.6ms)
Completed 500 Internal Server Error in 61ms
ActionController::RoutingError (No route matches {:action=>"show", :controller=>"tree", :project_id=>#<Project id: 21, name: "XXX", path: "xxx", description: "", created_at: "2011-12-12 21:48:58", updated_at: "2011-12-12 21:48:58", private_flag: true, owner_id: 1, default_branch: "master", issues_enabled: true, wall_enabled: true, merge_requests_enabled: true, wiki_enabled: true, namespace_id: nil>, :id=>#<CommitDecorator:0xc8cfbc0 @model=#<Commit:0xc932054 @commit=#<Grit::Commit "">>, @options={}>}):
app/views/commits/_commit.html.haml:4:in `_app_views_commits__commit_html_haml__356461203_110073880'
app/views/merge_requests/show/_commits.html.haml:22:in `block in _app_views_merge_requests_show__commits_html_haml__562632366_110207800'
app/views/merge_requests/show/_commits.html.haml:21:in `_app_views_merge_requests_show__commits_html_haml__562632366_110207800'
app/views/merge_requests/_show.html.haml:8:in `_app_views_merge_requests__show_html_haml___291358532_110585530'
app/views/merge_requests/show.html.haml:1:in `_app_views_merge_requests_show_html_haml__338559285_110566720'
app/controllers/merge_requests_controller.rb:21:in `show'
I'm using gitlab-4.0-stable branch.