Answer the question
In order to leave comments, you need to log in
How to make a “status” for a task?
There are tasks - objects of the Task model. Tasks can have a status: "in progress", "pending", "completed" (maybe some other).
1. Add a "status" field to the tasks table and describe methods for changing the status in the model and use them in views?
2. Or create a "Status" model with the "title" field, make a connection through the 3rd table:
class Task
habtm :statuses
class Status
habtm :tasks
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question