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

iis - ASP.Net Core CreatedAtAction in HttpPost action returns 201 but entire request ends with 500 -

gcc - Neither ld wrap nor LD_PRELOAD working to intercept system call -

ssh - Vagrant Windows - ssh_exchange_identification: read: Connection reset by peer -