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.city + "[" + @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]
end
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''
end
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,
-S
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---