twitter bootstrap – How to check the data before you register (to avoid redundancies) in Ruby on Rails

I have a school system that does the student's casdastro and inserts his information (like: name, phone, cpf, rg, etc.).
but suppose that I have two different registers, but that the parents are the same (for example, two siblings enrolled), how could I look for the father's register before registering?