The tables look something like this:
characterid | advantageid
aid (pk)| name | description | cost
I was working on delete first and was using the following code.
I do not fully understand exactly the error I am making but I'm guessing it has something to do with the url-- as you delete 'id' and id is in the url. I have gotten it to work but only by deleting the character (makes sense as it's deleting id on the main page.)
I am looking to have it so that a GM can delete something, it says are you sure and then it refreshes back onto the character sheet they were working on. The current code brings it back to the main index of all of the characters and does not delete.
Do I need to alter the url? (I've attempted and nothing good has come of it)
Or change how the code sees the id? The tutorial was originally designed for user id and so I attempted to modify it. I also have several more similar processes (skills, disadvantages so on)