Forum: Ruby on Rails text_field_with_auto_complete and Chrome

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Shandy N. (Guest)
on 2009-01-05 17:18
My auto complete field does not work in Chrome and just wondering if
anyone else has had this issue and have you gotten it fixed?

My view code:
<b>Type in closest home airport: </b>
<%= text_field_with_auto_complete :airport, :city,
   {:value => + "[" + @airport.code + "]",
    :class => 'airport_city'}, :skip_style => true,
    :select => 'airport_city' %>

My controler code:

auto_complete_for :airport, :city

def auto_complete_for_airport_city
  auto_complete_responder_for_airport_city params[:airport][:city]

def auto_complete_responder_for_airport_city(value)
  @airports = Airport.find( :all,
  :conditions => ['LOWER(city) LIKE ?',  value.downcase + '%'],
  :order => 'city ASC', :limit => 5)

    render :partial => 'airports'

The funny tghing is that I only have this issue in Chrome and Safari and
not IE or firefox. Thanks for any and all help,

This topic is locked and can not be replied to.