I am trying to add a high/low priority button to a ToDo Rails app and am having trouble. The button should resort the items in the list based on high/low priority. I have created a new table with the rails generate method Priority, but I am having trouble on what I do next. How should you update the task controller to sort the tasks by order of priority?
Aucun commentaire:
Enregistrer un commentaire