search for: auto_complete_for_post_code_loc

Displaying 1 result from an estimated 1 matches for "auto_complete_for_post_code_loc".

2006 Aug 01
0
Custom Autocomplete Field - Making a field lowercase
...f[] 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 ?", params[:post_code][:locality].downcase + ''%'' ], :order => "locality ASC", :limit => 10 } @items = PostCode.find(:all, find_options)...