Class: ActionView::Helpers::FormBuilder
- Inherits:
-
Object
- Object
- ActionView::Helpers::FormBuilder
- Defined in:
- lib/simple_auto_complete.rb
Instance Method Summary collapse
Instance Method Details
#helpers ⇒ Object
16 17 18 |
# File 'lib/simple_auto_complete.rb', line 16 def helpers ActionController::Base.helpers end |
#text_field_with_auto_complete(method, collection = [], options = {}) ⇒ Object
9 10 11 12 13 14 |
# File 'lib/simple_auto_complete.rb', line 9 def text_field_with_auto_complete(method, collection = [], = {}) helpers.content_tag :div, @template.text_field(@object_name, method, ) + helpers.content_tag(:div, helpers.content_tag(:ul, "", :class => "select-ul"), :class => "select-list"), :class => "auto-complete", "data-list" => collection.to_s end |