Forum: Ruby on Rails default value using Autocompleter.local

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.
Dd859ff9f672a06dfab509e9ecaecc20?d=identicon&s=25 adeel (Guest)
on 2008-12-12 07:40
(Received via mailing list)
I'm using recipe 7 from Rails Recipes to get really fast auto-
completion through Javascript.

I was previously using text_field_auto_complete which lets me define
a :value that appears in the field when the page is loaded - serving
as a default value.

I'd like to preserve this using the "<%= javascript_tag("new
Autocompleter.Local(..."
but I don't know how to define a default value.

-a
This topic is locked and can not be replied to.