From: "Bartosz DziewoƄski" Date: 2013-06-11T00:49:46+09:00 Subject: Re: I am trying to do an autocomplete with jquery and ruby On Mon, 10 Jun 2013 16:10:36 +0200, Ronald Ron wrote: > var availableTags = [<%= @availableTags.map(&:to_s).join(", ") %>]; This doesn't output what you think it does. The output is not valid JavaScript. -- Matma Rex