Hi Ian,
Maybe you could add an :after_update_element to your
text_field_with_auto_complete, e.g.
<%= text_field_with_auto_complete :model, :method,
{}, :after_update_element => 'getAddresses' %>
Then define a Javascript function to your head which calls
Ajax.Updater like:
function getAddresses(text, li) { new Ajax.Updater('mydiv', '/foo/bar/' + text, {asynchronous:true}); }
Where bar is a new action in your controller which returns your
addresses into a div named mydiv.
Hope that helps. You can find more on the rails and scriptaculous
wikis although they both seem to be down at the moment(!)