Displaying 1 result from an estimated 1 matches for "auto_complete_return".
2006 Aug 01
0
Custom Autocomplete Field - Making a field lowercase
...umanize".
My ideas so far is to:
Customise the PostCode object so that when auto_complete_result trys to call
item.locality, but i''ve tried overridding both def locality and def[] and it
doesn''t seam to work.
The other idea is to create a rhtml template that generates the
auto_complete_return.. but I have no idea how to do that.
Here''s the code:
View:
<%= text_field_with_auto_complete :post_code, :locality, :cols => 40 %>
Controller:
def auto_complete_for_post_code_locality
find_options = {
:conditions => [ "LOWER(locality) LIKE ?",...