Forum: Ruby on Rails Lightning Fast Javascript Auto complete

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
5db90e59fd525650c5a6f1fdd65821c0?d=identicon&s=25 Peter Piper (Guest)
on 2006-03-22 17:26
<%= javascript_tag("new
AutoCompleter.Local('search_start_station','start_station_auto_complete',
stations);") %>

I have <%= javascript_include_tag  :defaults %> in the head of my
layout.

But I always get an Error: "AutoCompleter is not defined".

Im using Rails 1.0, so I should have the latest javascript files.

The tag stips out:

<script type="text/javascript">
//<![CDATA[
new
AutoCompleter.Local('search_start_station','start_station_auto_complete',
stations);
//]]>
</script>


Any ideas why this is not working, Im following the Rails Recipies PDF
book.

Many thanks, Pete
D6ae681606a23d4d66fc4ab50a15137f?d=identicon&s=25 Lori Olson (lori)
on 2006-03-22 20:05
Peter Piper wrote:
> <%= javascript_tag("new
> AutoCompleter.Local('search_start_station','start_station_auto_complete',
> stations);") %>
>

>
> Many thanks, Pete

Case problem.  You need Autocompleter, NOT AutoCompleter

--
Regards, Lori
http://blog.dragonsharp.com
This topic is locked and can not be replied to.