Module: ActionView::Helpers::FormTagHelper

Defined in:
lib/simple_auto_complete.rb

Instance Method Summary collapse

Instance Method Details

#text_field_tag_with_auto_complete(name, value = nil, collection = [], options = {}) ⇒ Object



22
23
24
25
26
27
# File 'lib/simple_auto_complete.rb', line 22

def text_field_tag_with_auto_complete(name, value = nil, collection = [], options = {})
   :div, 
    text_field_tag(name, value, options) + 
    (:div, (:ul, "", :class => "select-ul"), :class => "select-list"),
    :class => "auto-complete", "data-list" => collection.to_s
end