new project error: ActionView::Template::Error (undefined local variable or method `self_and_descendants'
Added by pet gus over 12 years ago
just installed redmine on ubuntu/nginx/postgres and worked out the errors and all running, except when i create a new project i get a 500 internal error and this in the production.log
Started GET "/projects/new" for 50.116.19.7 at Tue Aug 14 08:31:52 +0200 2012
Processing by ProjectsController#new as HTML
Rendered projects/_form.html.erb (4.2ms)
Rendered projects/new.html.erb within layouts/base (6.0ms)
Completed 500 Internal Server Error in 131ms
ActionView::Template::Error (undefined local variable or method `self_and_descendants' for #<Project:0xb490ca54>):
4: <!--[form:project]-->
5: <p><%= f.text_field :name, :required => true, :size => 60 ></p>
6:
7: < unless @project.allowed_parents.compact.empty? >
8: <p><= label(:project, :parent_id, l(:field_parent)) ><= parent_project_select_tag(Herve Harster) ></p>
9: < end %>
10:
app/models/project.rb:333:in `allowed_parents'
app/views/projects/_form.html.erb:7:in `_app_views_projects__form_html_erb___577557764__627958918'
app/views/projects/new.html.erb:4:in `_app_views_projects_new_html_erb___126828522__630632748'
app/helpers/application_helper.rb:950:in `labelled_form_for'
app/views/projects/new.html.erb:3:in `_app_views_projects_new_html_erb___126828522__630632748'
Replies (1)
RE: new project error: ActionView::Template::Error (undefined local variable or method `self_and_descendants' - Added by pet gus over 12 years ago
still havnt solved this.
ive asked on stack overflow, and seems to be something about missing function call self_and_descendants
odd as it’s a fresh install... any more ideas?