On branch 6-6-stable 500 Server error when viewing files
Created by: dreamsxin
Started GET "/admin/test-admin/tree/master" for 127.0.0.1 at 2014-02-28 08:25:28 +0800
Processing by Projects::TreeController#show as HTML
Parameters: {"project_id"=>"zhengyili/eotu-yili", "id"=>"master"}
Rendered shared/_ref_switcher.html.haml (2.2ms)
Rendered projects/repositories/_download_archive.html.haml (2.5ms)
Rendered projects/tree/_spinner.html.haml (0.1ms)
Rendered projects/tree/_spinner.html.haml (0.1ms)
Rendered projects/tree/_spinner.html.haml (0.1ms)
Rendered projects/tree/_tree_item.html.haml (2.8ms)
Rendered projects/tree/_submodule_item.html.haml (1.0ms)
Rendered projects/tree/_tree.html.haml (6.4ms)
Rendered projects/tree/show.html.haml within layouts/projects (12.4ms)
Completed 500 Internal Server Error in 72ms
ActionView::Template::Error (wrong number of arguments (0 for 1)):
1: - tree, commit = submodule_links(submodule_item)
2: %tr{ class: "tree-item" }
3: %td.tree-item-file-name
4: = image_tag "submodule.png"
app/models/repository.rb:151:in `method_missing'
app/models/repository.rb:199:in `submodule_url_for'
app/helpers/submodule_helper.rb:6:in `submodule_links'
app/views/projects/tree/_submodule_item.html.haml:1:in `_app_views_projects_tree__submodule_item_html_haml___3398501997645733669_70324970231520'
app/helpers/tree_helper.rb:19:in `render_tree'
app/views/projects/tree/_tree.html.haml:45:in `_app_views_projects_tree__tree_html_haml___2840210419503703208_70324972106440'
app/views/projects/tree/show.html.haml:6:in `_app_views_projects_tree_show_html_haml___1150911541396412216_70324971728040'
app/controllers/projects/tree_controller.rb:6:in `show'
app/controllers/application_controller.rb:57:in `set_current_user_for_thread'