Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
## Associations Although we have modelled the assignment of tasks to users, at the moment there is no way for the user to set these assignments. We'll add that to the task edit page. Create a task and browse to the edit page - only the description is editable. Hobo does provide support for "multi-model" forms, but it is not active by default. To specify that a particular association should be accessible to updates from the form, you need to declare `:accessible => true` on the association. In `task.rb`, edit the `has_many :users` association as follows: SHOW_PATCH Without that declaration, the permission system was reporting that this association was not editable. Now that the association is "accessible", the permission system will check for create and destroy permission on the join model `TaskAssignment`. As long as the current user has those permissions, the task edit page should now include a nice javascript powered control for assigning users in the edit-task page. Right now the only people who have this permission are the site administrators. (The first user who signs up automatically becomes a site administrator). We'll add permissions for other users later on in [Project Ownership](#project_ownership).
- Loading branch information