MCQs > IT & Programming > Ruby On Rails > For a Rails validator, how would you define an error message for the model attribute address with the message "This address is invalid"?

Ruby On Rails MCQs

For a Rails validator, how would you define an error message for the model attribute address with the message "This address is invalid"?

Answer

Correct Answer: Model.errors[:address] <<

Explanation:

Note: This Question is unanswered, help us to find answer for this one

Ruby On Rails Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

Ruby On Rails Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it