500 Server error when viewing files
Created by: nesrual
After upgrading to 6.4 I get the following error when viewing files:
Processing by Projects::TreeController#show as HTML
Parameters: {"project_id"=>"my_namespace/my_application", "id"=>"master"}
Rendered shared/_ref_switcher.html.haml (1.9ms)
Rendered projects/tree/_tree_item.html.haml (6.9ms)
Rendered projects/tree/_blob_item.html.haml (7.8ms)
Rendered projects/tree/_readme.html.haml (0.9ms)
Rendered projects/tree/_tree.html.haml (18.0ms)
Rendered projects/tree/show.html.haml within layouts/projects (20.6ms)
Completed 500 Internal Server Error in 72ms
ActionView::Template::Error (wrong number of arguments (0 for 1..2)):
10: %pre.clean
11: = readme.data
12: - else
13: = raw GitHub::Markup.render(readme.name, readme.data)
app/views/projects/tree/_readme.html.haml:13:in `_app_views_projects_tree__readme_html_haml___1588826242682031314_70238202018620'
app/views/projects/tree/_tree.html.haml:49:in `_app_views_projects_tree__tree_html_haml___1471130481819675412_70238167651260'
app/views/projects/tree/show.html.haml:4:in `_app_views_projects_tree_show_html_haml___2069795906493322834_70238167270180'
app/controllers/projects/tree_controller.rb:6:in `show'
app/controllers/application_controller.rb:57:in `set_current_user_for_thread'
The Ruby version is:
ruby 2.0.0p247 (2013-06-27 revision 41674) [x86_64-linux]