On Dec 10, 2007, at 6:29 PM, Neha Chopra wrote:

> What will completion_options[:skip_style] be?

Please ignore that line, it says: inline the CSS for auto completion  
unless specified otherwise[*]. You probably want an external CSS for  
this stuff anyway.

> I have implemented it like
> <input type="text" id="criteria[<%=count%>][data_autocomplete]"
> name="criteria[<%=count%>][data_autocomplete]" size="60"
> autocomplete="off"/>
> <%=content_tag("div", "", :id  
> =>"#{@data_elem.id}_auto_complete", :class

Instead of @data_elem.id you need to use the ID of the text field.

> => "auto_complete") %>
> <%=auto_complete_field @data_elem.id%>

Same here.

-- fxn

[*] That code was copied from a helper of http://agilewebdevelopment.com/plugins/model_auto_completer 
  that receives a hash of options called completion_options.