mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-09-30 01:44:28 -04:00
Force autocomplete to json format
This commit is contained in:
1 parent
74e6a7cf2f
commit
e165c77d64
1 file changed
+1
-2
@@ -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)
|
||||
%(
|
||||
<input id="#{source}" class="auto-suggest #{options[:class]}"
|
||||
type="text" value="#{default}" data-source-url="#{source_path}",
|
||||
|
||||
Reference in new issue
Block a user