Provides an ajax-powered find-as-you-type live search field which is hooked up to Hobo’s site-side search feature.
You can provide a completely custom set of results by changing the action parameter to your own controller action.
On the other hand, if you wish to slightly tweak the list of results you can adjust the search columns on each model through set_search_columns, To stop querying a model, simply set it’s search_columns to an empty list.
Customizing the display of results can be done through customizing the “box” param and the
search-results tag. The current definition of <search-results> expects results to be returned in
- action: the path to send the query. Default is “/search” (actually, site_search_path)
- query_param: the name of the param to use for the search. Default is “query”
All other attributes are merged into the form, so standard form attributes are supported.
Edit this page