From faca466cea984063257b08e85eee2b3e28ade7d4 Mon Sep 17 00:00:00 2001 From: Bryan Larsen Date: Fri, 19 Feb 2010 15:39:29 -0500 Subject: [PATCH] auto-completion-form Now for the form in `projects/show.dryml`. We'll use Hobo's ajax `part` mechanism to refresh the collection without reloading the page: SHOW_PATCH Some things to note: - The `` tag has `part="members"`. This creates a re-loadable section of the page, much as you would achieve with partials in regular Rails. - The `
` tag has `update="members"`. The presence of this attribute turns the form into an ajax form. Submitting the form will cause the "members" part to be updated. - The `` tag creates an input field for the user association with auto-completion. --- app/views/projects/show.dryml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/app/views/projects/show.dryml b/app/views/projects/show.dryml index 2e397ff..85d9355 100644 --- a/app/views/projects/show.dryml +++ b/app/views/projects/show.dryml @@ -9,4 +9,17 @@ No stories match your criteria + + +

Project Members

+ + + +
+ Add a member: + +
+ +
+ \ No newline at end of file