You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Tasks can be broken down into multiple steps, allowing for a structured workflow.
96
+
97
+
```ruby
98
+
# Add task steps
99
+
task.task_steps.create(title:'Design UI mockups')
100
+
task.task_steps.create(title:'Write backend API')
50
101
51
-
puts project.tasks # Lists all tasks in all its task lists
52
102
```
53
103
54
104
## Automatic Route Generation
55
105
56
-
Todoro automatically generates routes for any model that includes `acts_as_taskable`. For example, if `Project` includes `acts_as_taskable`, the following routes are created:
106
+
Todoro automatically generates routes for any model that includes `acts_as_taskable`. For example, if `Project` includes `acts_as_taskable`, this is part of the generated routes:
57
107
58
-
```sh
59
-
GET /projects/:project_id/task_lists(.:format)
60
-
POST /projects/:project_id/task_lists(.:format)
61
-
GET /projects/:project_id/task_lists/:id(.:format)
0 commit comments