How to remove the model name from the beginning of the error message. while writing custom message for a validation. My validation is like:
validates :phone, presence: { message: "For security, please enter your <strong> mobile phone number </strong>" }
But the o/p: is like:
Phone For security, please enter your mobile phone number
I want remove the field name ie. phone from the beginning of the error message. I am using Ruby 2.4 with Rails 5.2 please guide with correct syntax to remove it.