Browse files


Now for the form in `projects/show.dryml`. We'll use Hobo's ajax `part` mechanism to refresh the collection without reloading the page:


Some things to note:

 - The `<collection>` tag has `part="members"`. This creates a re-loadable section of the page, much as you would achieve with partials in regular Rails.

 - The `<form>` 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 `<name-one>` tag creates an input field for the user association with auto-completion.
  • Loading branch information...
bryanlarsen authored and iox committed Jun 3, 2013
1 parent 66bff32 commit 2b91807ae7008f1f27c9894826d0493d5b104587
Showing with 14 additions and 1 deletion.
  1. +14 −1 app/views/projects/show.dryml
@@ -9,4 +9,17 @@
<empty-message:>No stories match your criteria</empty-message:>
<h2>Project Members</h2>
<collection:members part="members"/>
< update="members" reset-form refocus-form>
Add a member:

0 comments on commit 2b91807

Please sign in to comment.