So yesterday I hit a little bit of a wall. And the good news it I’m not too worried about it.
Right now I have four objects being either created or associated with in my single form. The reason I’m being persistent about having all of this happen in one form is because if I was a user this is the way I would want to implement my workouts. I would want either create the workout beforehand and after my workout but in either scenario be able to implement all the exercises, sets, reps, and weight used. If this was not the case and I had multiple forms it would be easy peasy but that’s not what I want to do.
Today I’ll be working with Joe, one of the TA’s here at Flatiron to try to get my form working this way. If that gets done before the weekend, I would like to attempt to make this form using accepted_attributes_for. The reason I did not do that was because a confidant of mine suggested I do otherwise as actually locating all of the nested attributes is challenging, at least for someone with less than 8 weeks of programming under his belt. Also this weekend I am also going to be looking in AJAX because apparently that would solve my issues too.