Filter create/edit breaks if the resource type does not have a corresponding controller with 'autocomplete_search'
If a permission set is created and specifies a resource type that does not contain an autocomplete route, the permissions aren't loaded by the UI and leaves the user in a weird broken state that they are unaware of. The line that leads to this is - https://github.com/theforeman/foreman/blob/develop/app/helpers/filters_helper.rb#L14 which throws a backend error since the first argument is nil.
fixes #5553: FiltersHelper#search_path returns an empty string for unrecognized resources
#2 Updated by Eric Helms over 5 years ago
NoMethodError (undefined method `+' for nil:NilClass):
actionpack (3.2.17) lib/action_controller/metal/implicit_render.rb:4:in `send_action'
actionpack (3.2.17) lib/abstract_controller/base.rb:167:in `process_action'
actionpack (3.2.17) lib/action_controller/metal/rendering.rb:10:in `process_action'