Progress on Hogwarts Homework

Mike and I pair programmed on this for 4.5 hours together! It was a great experience, we learned a lot about coding together. We realized that when we coded sections that we had a plan for, things went great! But once we stopped following a plan, and started doing the "let's just try this and see where it goes" or, "oh, what if this fixes it!" coding, we started going in circles. 

Tom helped get us back on track after we tried changing the lectures and students models over to HABTM (rather than just creating a jointable and leaving the models alone), but we got stuck on putting students into lectures. 

In pry, we can see that the students have a lecture_id and lectures have student_ids, but they're not coming back out in our show student roster views. 

After playing around with the code more last night and this morning, I have a hunch that it has to do with our using a collection_select dropdown to add students to lectures. We used that for our house assignment, which is a one to many assignment, so by using it again with the lectures, maybe we're limiting ourselves? In any case, the many to many, students have professors through lectures relationship is still eluding me. 

So happy we tried pair programming!!