i come a SQL background and i have always been used to having joined tables. example, when a new customer is inputted and they wish to input a product right away but that product is a new entry as well. how would i set up the model, controller and view so that when a form like this:
new product input:
when clicking submit, the records for customer name will go to customer table, product to product table and will automatically be paired in the customer_product joining table.
thanks for any help!