mysql - How can I Insert Data Into a Join Table with a Many to Many Relation Using a Rails Controller Page -
given: 2 tables, lists, , cars, have many many relations.
i want append data console. finding , reading browser works, how can add , append through rails controller page?
with has_many relationship can add record <<
@car.lists << @list @list.cars << @car
Comments
Post a Comment