MCQs>IT & Programming>Ruby On Rails>When you've got a form, and when the user submits invalid data, you redirect back to the edit form. If you want to show a general error message (not tied to validation errors) to the user, you'd do which of the following?
Ruby On Rails MCQs
When you've got a form, and when the user submits invalid data, you redirect back to the edit form. If you want to show a general error message (not tied to validation errors) to the user, you'd do which of the following?
Answer
Correct Answer: In controller: flash[:error] = message
Explanation:
Note: This Question is unanswered, help us to find answer for this one