Posts by Jose Francisco • 71 points
2 posts
-
3
votes1
answer86
viewsA: First table id does not click on BD
I was able to solve it this way: <%= f.collection_select(:empresa_id, Empresa.all.order(:nome), :id, :nome {prompt :true}) %> And so it worked!
-
4
votes1
answer86
viewsQ: First table id does not click on BD
I’m trying to create a simple contact schedule with two tables: Being one of them empresa :nome and the other contatos :nome :telefone :email... I created the two tables and put a Foreign_key in the…