# Lignhtning fast autocompleter IE issue

**URL:** <https://www.ruby-forum.com/t/lignhtning-fast-autocompleter-ie-issue/115070>\
**Category:** Ruby\
**Created:** [September 20, 2007, 11:19am UTC](https://www.ruby-forum.com/t/lignhtning-fast-autocompleter-ie-issue/115070 "2007-09-20T11:19:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jhonny](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/919ad9/32.png) [@jhonny](https://www.ruby-forum.com/u/jhonny)\
**Post date:** [September 20, 2007, 11:19am UTC](https://www.ruby-forum.com/t/lignhtning-fast-autocompleter-ie-issue/115070/1 "2007-09-20T11:19:37Z")

</div>

Hi friends,  
I was using the rails recipes for the feature called Lightning fast auto  
completer where we search and save the contents to be displayed in the  
JavaScript Array .

something like in some .js file  
var authors = new Array(\<%= @authors.size %\>);  
\<% @authors.each\_with\_index do |author, index| %\>  
authors[\<%= index %\>] = “\<%= author.name %\>”;  
\<% end %\>

and do this in the head section the rhtml file

\<%= javascript\_include\_tag :defaults %\>

and in the controller  
def authors\_for\_lookup  
@authors = Author.find(:all)  
@headers[’ content-type’] = ’ text/javascript’  
end
