My question is just about the architecture of how to return the error for view. Here's the example below:
class Pessoa < ActiveRecord::Base
belongs_to :responsavel, class_name: 'Pessoa', foreign_key: 'responsavel_id'
end
class Alunos < Pessoa
end
With these models, I have the following form
.