Project

General

Profile

Actions

Bug #4960

closed

undefined method `host_classes_path' when editing filter on "host class"

Added by Dominic Cleal over 10 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Normal
Category:
Web Interface
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

Create a (role) filter with the "Host class" edit_classes permission, then go back and edit it and it will fail:

ActionView::Template::Error (undefined method `host_classes_path' for #<#<Class:0x007f6facb28860>:0x007f6fb95070f0>):
    45: 
    46:         <%= autocomplete_f f, :search,
    47:                            :disabled => f.object.unlimited?,
    48:                            :path => resource_path(f.object.resource_type), :control_group_id => 'search_group' %>
    49:       </div>
    50:     </div>
    51: 
  app/helpers/filters_helper.rb:28:in `resource_path'
  app/views/filters/_form.html.erb:48:in `block in _app_views_filters__form_html_erb___2057435471048220807_70058920025860'
  app/helpers/layout_helper.rb:248:in `form_for'
  app/views/filters/_form.html.erb:3:in `_app_views_filters__form_html_erb___2057435471048220807_70058920025860'
  app/views/filters/edit.html.erb:3:in `_app_views_filters_edit_html_erb__944164940854790638_70058919033000'
  app/models/concerns/foreman/thread_session.rb:33:in `clear_thread'

Related issues 1 (1 open0 closed)

Blocks Foreman - Tracker #4552: New permissions/authorization system issuesNew

Actions
Actions

Also available in: Atom PDF