500 error after click `cancel' in editing file
Created by: dengzhp
Only click the below 'cancel' button will 500 error. The above cancel button is ok.
version: 5.2-stable
production log:
Started GET "/foo/someproj/tree/11770880523fc3b853bf7824b4859236932d4ecf/res/query.py" for 127.0.0.1 at 2013-06-04 14:03:42 +0800 Processing by TreeController#show as HTML Parameters: {"project_id"=>"foo/someproj", "id"=>"11770880523fc3b853bf7824b4859236932d4ecf/res/query.py"} Rendered shared/_ref_switcher.html.haml (6.0ms) Rendered tree/_tree.html.haml (7.5ms) Rendered tree/show.html.haml within layouts/project_resource (14.7ms) Completed 500 Internal Server Error in 110ms ActionView::Template::Error (undefined method `contents' for #): 37: %td 38: %td 39: 40: = render_tree(tree) 41: 42: - if tree.readme 43: = render "tree/readme", readme: tree.readme app/models/tree.rb:9:in `method_missing' app/helpers/tree_helper.rb:8:in `render_tree' app/views/tree/_tree.html.haml:40:in `_app_views_tree__tree_html_haml___102761856_99202380' app/views/tree/show.html.haml:4:in `_app_views_tree_show_html_haml__886923296_97289050' app/controllers/tree_controller.rb:11:in `show'