I have two columns in a table: 1. vehicles, 2. drivers.
The table lists all the vehicles in vehicles column and drivers column
will have select_tag dropdown to select a driver.
For ex, following drivers are set to vehicles.
vehicle1 -> driver1
vehicle2 -> select
vehicle3 -> driver2
Here, when change driver for vehicle1 from driver1 to driver2 using
drop-down list, I am updating the database table for both vehicle1 and
vehicle3. But I need to update the driver to ‘select’ for vehicle3. May
I know how can I do this?