Rails autocomplete

Any Dot wrote:

So far, so gut. Autocomplete works. But I want the following - if I type 'm', only words starting with 'm' to appear. I have the word - 'Belgium' - when I fill 'm' in the field, 'Belgium' is fetched out, cause there is a 'm' in it.    do this

"country LIKE ?%"

instead of this

"country LIKE %?%"

in your conditions clause.