diff --git a/app/helpers/auto_suggest_helper.rb b/app/helpers/auto_suggest_helper.rb index 6d4637d4e..1f9030fd8 100644 --- a/app/helpers/auto_suggest_helper.rb +++ b/app/helpers/auto_suggest_helper.rb @@ -10,8 +10,7 @@ module AutoSuggestHelper end resource = resource.class.name.downcase - source_path = Rails.application.routes.url_helpers.send("search_#{source}s_path") - + source_path = Rails.application.routes.url_helpers.send("search_#{source}s_path", format: :json) %(