--- !ruby/object:RI::ClassDescription 
attributes: []

class_methods: []

comment: 
- !ruby/struct:SM::Flow::P 
  body: "Example:"
- !ruby/struct:SM::Flow::VERB 
  body: "  # Controller\n  class BlogController &lt; ApplicationController\n    auto_complete_for :post, :title\n  end\n\n  # View\n  &lt;%= text_field_with_auto_complete :post, title %&gt;\n"
- !ruby/struct:SM::Flow::P 
  body: By default, auto_complete_for limits the results to 10 entries, and sorts by the given field.
- !ruby/struct:SM::Flow::P 
  body: "auto_complete_for takes a third parameter, an options hash to the find method used to search for the records:"
- !ruby/struct:SM::Flow::VERB 
  body: "  auto_complete_for :post, :title, :limit =&gt; 15, :order =&gt; 'created_at DESC'\n"
- !ruby/struct:SM::Flow::P 
  body: For help on defining text input fields with autocompletion, see ActionView::Helpers::JavaScriptHelper.
- !ruby/struct:SM::Flow::P 
  body: "For more examples, see script.aculo.us:"
- !ruby/object:SM::Flow::LIST 
  contents: 
  - !ruby/struct:SM::Flow::LI 
    label: "*"
    body: http://script.aculo.us/demos/ajax/autocompleter
  - !ruby/struct:SM::Flow::LI 
    label: "*"
    body: http://script.aculo.us/demos/ajax/autocompleter_customized
  type: :BULLET
constants: []

full_name: ActionController::Macros::AutoComplete::ClassMethods
includes: []

instance_methods: 
- !ruby/object:RI::MethodSummary 
  name: auto_complete_for
name: ClassMethods
superclass: 
