From 7c1b4c0a2421d4f5300261ccfa3b54831caa795a Mon Sep 17 00:00:00 2001 From: Eric Allen Date: Sat, 2 May 2009 16:51:10 -0400 Subject: [PATCH] Add autocompletion for tags on todo edit form, too. Re #462. --- app/views/todos/_edit_form.rhtml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/views/todos/_edit_form.rhtml b/app/views/todos/_edit_form.rhtml index 6e0deefe..c82ac126 100644 --- a/app/views/todos/_edit_form.rhtml +++ b/app/views/todos/_edit_form.rhtml @@ -45,6 +45,11 @@ <%= text_field_tag 'tag_list', tag_list_text, :id => dom_id(@todo, 'tag_list'), :size => 30, :tabindex => 12 %> +<%= content_tag("div", "", :id => dom_id(@todo, 'tag_list')+"_auto_complete", :class => "auto_complete") %> +<%= auto_complete_field dom_id(@todo, 'tag_list'), { + :url => {:controller => 'todos', :action => 'auto_complete_for_tag'}, + :tokens => [','] +} %>