You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -93,11 +93,11 @@ module AutoCompleteMacrosHelper
#
# The auto_complete_result can of course also be called from a view belonging to the
# auto_complete action if you need to decorate it further.
def auto_complete_result(entries, field, phrase = nil)
return unless entries
- items = entries.map { |entry| content_tag("li", phrase ? highlight(entry[field], phrase) : h(entry[field])) }
+ items = entries.map { |entry| content_tag("li", phrase ? highlight(entry.send(field), phrase) : h(entry.send(field))) }
content_tag("ul", items.uniq)
end
Wrapper for text_field with added AJAX autocompletion functionality.
The text was updated successfully, but these errors were encountered:
Wrapper for text_field with added AJAX autocompletion functionality.
The text was updated successfully, but these errors were encountered: