which does work, for maintaining the many-many relationship records.
the relevant line is
@A.Bs = B.find(@params[:A_ids]) if @params[:A_ids]
but the problem is that in my many-many table I have a "created_on" field, as I'd like to track when this relationship is created.
Unfortunately this field is not getting auto-magically filled.
So, I'm wondering if this is due to the many-many type relationship not allowing (or supporting) this type of thing. Or is it the technique I'm using to maintain the relationship?
Or perhaps there is something completely different I'm not aware of, entirely possible as I've been doing Rails work for all of 2 weeks now.
That's an excellent idea as well! I guess I was just curious whether the find by id was safe to start with. I don't want to add extra code if not needed. Going for the minimalist approach