Displaying 1 result from an estimated 1 matches for "auto_complete_for_institution_nam".
Did you mean:
auto_complete_for_institution_names
2007 Jan 25
2
text_field_with_auto_complete problem
...y view is called place and is the following:
<table>
<tr>
<td>
<%= text_field_with_auto_complete :institution, :names, { :size
=> 15 }, :skip_style => true -%>
</td>
</tr>
</table>
In the controller I have:
def place
end
def auto_complete_for_institution_names
search = params[:institution][:names]
breakpoint
@institutions = Institution.search(search) unless search.blank?
render :partial => "live/search"
end
Then I have a partial called _live.rhtml, which contains:
<ul class="autocomplete_list">
<% for insti...