Rails multiple record entries on one submit button in different columns

45 Views Asked by At

I have two models named race_timing and members having one to many relationship. Member's model contain member details of number of students and race_timing model will contain the corresponding timings of each student for any event.

In my race_timing model i want to submit the timings of students in slots of 8 i.e at one time on one submit button 8 records can be updated where timing is taken in single text field and updated in 3 different columns minute,second and microsecond for each member.

I have seen all other posts and tried but only last entry was done in the database.

Can anyone please suggest how this can be done?

0

There are 0 best solutions below