Fixed the horrible fuck up in parameter sanitization. This is a fix now; found a whole new construction site. Next steps would be: Talking the view into submitting the answer ids as an array, sanitizing params better.
Fixed the horrible fuck up in parameter sanitization. This is a fix now; found a whole new construction site. Next steps would be: Talking the view into submitting the answer ids as an array, sanitizing params better.
Merge branch 'master' of github.com:floGik/fsg-quiz
What? Somehow I sometimes fumble git.
Beautified some things; toyed around with fontawesome a bit (it's awesome); Users now get saved with the quiztories. There's a lot more work to do but for now I'm not unsatisfied.
Failed submits of a quiztory get logged now (in a hash; timestamps are keys and users are user ids) and printed once the quiztory is finished (stats partial view). The submit button for quiztories is now disabled for 30 seconds after every submit for every user (the last timestamp for the user is read from the failed_submits attributes and the delay calculated together with Time.now which is then passed to a jQuery script in the ugliest way possible: through html; this way, reloading the page or even relogging doesn't do anything). Furthermore, I've sorted out a horrible potential error in the quiztory creation form, where it was possible that - if the quiz with id 1 were to be deleted from the database - no quiz would be selected and hence a new quiztory created without a quiz_id, which broke the app. What else... Yeah, I beautified a lot of stuff again while I was moving through the views, but the partial quiztory/stats is the only one I actively remember working on.