Forum: Ruby on Rails using ajax-enabled search field in rails

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.
Claus G. (Guest)
on 2006-03-16 23:15
(Received via mailing list)
Hi.

I followed the ajax-the-rails-way in the (quite usefull) Agile web
dev. with rails. I have a search-field where I can enter a postalcode
(zipcode).

<%= observe_field(:search,
                  :frequency => 0.9,
                  :update    => :results,
                  :url       => { :action => :search })  %>

Is it possible to have both the :frequency and another conditions
which starts searching when two or more digits have been entered into
the search-field? The db is postgresql and I use the wildcard 'select
* from postalcodes where postalcode like xyz%' where xyz is the value
entered in search.

regards
Claus
This topic is locked and can not be replied to.