Hello, I'm new to RoR. I have a form with field for CPF and I need to validate whether it is valid or not before saving the record.
I tried different gems like gem'cpf_cnpj, gem 'brcpfcnpj' and 'validates_cpf_cnpj', but following the readme in github, they all gave some sort of error, perhaps due to the compatibility of ruby or rails.
My last attempt was to use a ruby code and create a custom validate, but I was not successful either.
Does anyone have a solution using Rails 5?