I've started a rails 4 app to schedule and calculate the work hours of my employees.
So far I created a employee model and a time_unit model to display all work hours.
The only problem is that I don't know how to create multiple objects at once.
Currently my form looks like this
= form_tag('/time_units') do %p= label_tag :start = datetime_select("time_unit", :start, minute_step: 15) %p= label_tag :end = datetime_select("time_unit", :end, minute_step: 15) %p= label_tag :personalassistance_id = collection_select("time_unit",:personalassistance_id, Personalassistance.all, :id, :name) %p= submit_tag
I tried to use arrays just like the solution here, but I cannot get it to work.
I would be very thankful for your help.