Pippin found an old scroll covered in runes in the cellar, and read it out loud in front of the tavern's computer. Since then, the forms have been cursed:
- the page for adding a dish displays an incomprehensible error;
- (once that error is gone) the add form just displays itself again, without saving anything;
- and it's impossible to remove a dish: “Access denied”, every single time.
Pippin swears he “didn't touch anything, except two or three words to make it look nicer”.
Your mission
Lift the curse: find and fix the three bugs. They stack up: you have to fix the first one to see the second.
Your tools
- The error page in the preview, for the first one;
- the controller code, for the form that “does nothing”: what tells it that it has been sent?
- for the 403: the token is made in the template and checked in the controller. Both must be talking about the same token.
And don't break the guestbook along the way!