1
I have two models cliente.rb
and atendimento.rb
, both already with their Associations. When will I generate a new service with you through collection_select
select the name of the customer, the problem and that I would like to select the client when selecting other fields like address, phone also automatically come to my form, for example: in my customer registration I have name, phone, address, etc. Already in my service registration I have the name of the customer (I search through the collection_select
), customer’s phone (I want it to be filled in automatically when selecting the customer), address, etc.