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 = [], = {}) content_tag :div, text_field_tag(name, value, ) + content_tag(:div, content_tag(:ul, "", :class => "select-ul"), :class => "select-list"), :class => "auto-complete", "data-list" => collection.to_s end |