>Is there some nice happy hobo-ish way to do this?
There should be. If you look in the agile tutorial "contributor" gets
added to the ProjectMembership model.
fields do
contributor :boolean
timestamps
end
Then the sidebar of the projects show template gets:
<editor:contributor/>
This isn't spelled out but I found that this works and creates an
inplace editor checkbox on the page, see where it is placed below
<show-page>
<content:>
<section-group>
<section>
<param-content for="content"/>
</section>
<aside>
<h2>Project Members</h2>
<collection:memberships part="members">
<card>
<heading:>
<a:user/>Contributor:<editor:contributor/>
</heading:>
</card>
</collection>
<form:memberships.new update="members" reset-form refocus-
form>
<div>
Add a member:
<name-one:user complete-target="&@project"
completer="new_member_name"/>
</div>
</form>
</aside>
</section-group>
</content:>
<collection: replace>
<table-plus with="&@stories" fields="this, tasks.count, status">
<prepend-header:>
<div class="filter">
Display by status: <filter-menu param-name="status"
options="&StoryStatus.all"/>
</div>
</prepend-header:>
<empty-message:>No stories match your criteria</empty-message:>
</table-plus>
</collection:>
</show-page>
That causes a checkbox to show up next to the project members in the
list.
You should be able to use this method to do what you want, but I ran
into a problem only booleans work with the inplace editor, this has
got to be a bug because I have seen in place editors for other data
types in previous versions of hobo.
Here is the error that happens:
NoMethodError in Projects#show
Showing projects/show.dryml where line #13 raised:
undefined method `behaviour_class' for #<ActionView::Base:0xc5dc65c>
I'll bet a cure for this will show up fairly soon :)
Brett
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Hobo
Users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/hobousers?hl=en
-~----------~----~----~----~------~----~------~--~---