I have this code:
flash[:error] = t("errors.messages.restrict_dependent_destroy.many")
and the system displays the following error message:
Can not delete the record because there are % {record} dependents
I want it to show this way:
Can not delete the record because there are dependent categories
How do I do it?