search for: auto_complete_for_entry_city_name

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

2006 Apr 13
0
text_field_with_auto_complete and foreign characters
...the user must enter a city name. I would like to use an autocomplete_field for the city name, so I have the following code in my view: <%= text_field_with_auto_complete ''entry'', ''city_name'', :size => 40 %> and in my controller I have the method: def auto_complete_for_entry_city_name @cities = City.find(:all, :conditions => [ ''LOWER(name) LIKE ?'', params[:entry][:city_name].downcase + ''%''], :order => ''name ASC'', :limit => 10) render :partial =&gt...