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

Popular posts from this blog

Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12:test (default-test) on project.Error occurred in starting fork -

windows - Debug iNetMgr.exe unhandle exception System.Management.Automation.CmdletInvocationException -

unity3d - Fatal error- Monodevelop-Unity failed to start -