Hi,
I’m trying to implement a search feature on my blog:
http://not.justco.de.
It works nicely in Firefox and Safari, but not in Internet Explorer.
This is the code in my _search.rhtml:
<%= text_field_with_auto_complete :post, :title %>
This is in the controller:
def auto_complete_for_post_title
@results = Post.find(:all, :conditions => [ ‘LOWER(title) LIKE ?’,‘%’
- params[:post][:title].downcase + ‘%’ ], :order => ‘title ASC’,
:limit => 20)
render :partial => ‘results’
end
Also I can’t seem to style li.selected in my css, it just keeps ignoring
the value and it always uses the default yellow color.
Any help would be great,
Maarten