Actions
Bug #4960
closedundefined method `host_classes_path' when editing filter on "host class"
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'
Actions