ActionView::Template::Error (undefined method `heads' for nil:NilClass)
Created by: YpNo
Hi,
I have an error 500 when I try to edit a Project:
Started GET "/myGroup/myProject/edit" for 127.0.0.1 at 2013-03-06 10:33:43 +0100 Processing by ProjectsController#edit as HTML Parameters: {"id"=>"myGroup/myProject"} Rendered projects/_project_head.html.haml (10.1ms) Rendered projects/_form.html.haml (3.2ms) Rendered projects/edit.html.haml within layouts/project_resource (14.2ms) Completed 500 Internal Server Error in 57ms
ActionView::Template::Error (undefined method heads' for nil:NilClass): 9: Project name is 10: .input 11: = f.text_field :name, placeholder: "Example Project", class: "xxlarge" 12: - unless @repository.heads.empty? 13: .clearfix 14: = f.label :default_branch, "Default Branch" 15: .input= f.select(:default_branch, @repository.heads.map(&:name), {}, style: "width:210px;") app/views/projects/_form.html.haml:12:in
block in _app_views_projects__form_html_haml__3822383053566391739_49458020'
app/views/projects/_form.html.haml:1:in _app_views_projects__form_html_haml__3822383053566391739_49458020' app/views/projects/edit.html.haml:5:in
_app_views_projects_edit_html_haml__1876097412379395862_49311880'
- Gitlab 5.0
- Debian Squeeze
- Ruby version : 1.9.3p194
Regards.