I currently have a model called project_todo and it has a column called done that is a boolean. I have it setup so I can currently drag this from one side of the app to the other, dragging it from todo to done. However, it doesn't save obviously.
What I need to do is on drag toggle the boolean and I believe what I need to do is post via JS/jquery to the update path to do it. However, I'm not exactly sure what this should look like.
Can anyone give me some example code and/or point me in the right direction.
So I could do something like this:
$.ajax({
type: 'POST',
url: '/project_todo/<%project_todo.id%>/edit',
});