text_field_with_auto_complete

Sorry made a typo its

<%= auto_complete_result @countries, :name %>

not

<%= auto_complete_result @countries, :country %>

as :country is not valid!