Subscribe to GoRails to get access to this episode and all other pro episodes, and new awesome content every month.
Unlimited access. Cancel anytime.
I am loving this series! This is such a cool project. The combination of acts_as_list and Vue makes it seem effortless.
I had one minor suggestion for the code in the cardMoved function. Rather than finding the list index, would it be better to just set a constant to the new list itself, and then use that object to set the list_id in the ajax request? Here's what I did:
Then when setting up data, I did this, which seems a bit cleaner:
Thanks for the great material!