I have a many-many defined as habtm from both sides of the equation. I've also set the join table with appropriate belongs_to defines.
I followed this example to make it work,
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.