when validating this
required(:activity_ids).filled(:array?) { each(:int?, :activity_exists?) }
I get the following error hash, if the provided activity_id does not exist:
{:activity_ids=>[[0, ["This activity does not exist."]]]}
formular displays this as [0, ["This activity does not exist."]] below my form field (btw, 0 is not the provided, wrong ID, but the index of the wrong ID in the activity_ids hash)
when validating this
required(:activity_ids).filled(:array?) { each(:int?, :activity_exists?) }I get the following error hash, if the provided activity_id does not exist:
{:activity_ids=>[[0, ["This activity does not exist."]]]}formular displays this as
[0, ["This activity does not exist."]]below my form field (btw,0is not the provided, wrong ID, but the index of the wrong ID in the activity_ids hash)