2
I have a table user
, where I have a mandatory field cidade
, and I have a table contatos
(that is belongs_to: user
), but the form does not have the field cidade
which is mandatory to user
. How do I put the city countryside being optional no model contato
?
Fez belongs_to > optional: true
and it didn’t work.
No models/user.Rb I am making this validation with validate_presence_of