You've got a form - and when the user submits invalid data - you simply show them an error page (no redirect). In the controller - to show the general error on the rendered page - you would add:

🎲 Try a Random Question  |  Total Questions in Quiz: 122  |  🧠 Study this quiz with Flashcards
This question is part of a full practice quiz:
Ruby on Rails Fundamentals Test — practice the complete quiz, review flashcards, or try a random question.


You've got a form - and when the user submits invalid data - you simply show them an error page (no redirect). In the controller - to show the general error on the rendered page - you would add: