Flowdock
method

text_field_with_auto_complete

Importance_2
v1.0.0 - Show latest stable - 1 note - Class: ActionView::Helpers::JavaScriptMacrosHelper
text_field_with_auto_complete(object, method, tag_options = {}, completion_options = {}) public

Wrapper for text_field with added AJAX autocompletion functionality.

In your controller, you’ll need to define an action called auto_complete_for_object_method to respond the AJAX calls,

See the RDoc on ActionController::AutoComplete to learn more about this.

Show source
Register or log in to add new notes.
June 15, 2011 - (>= v2.0.0)
1 thank