This means an HABTM relationship, right? Is this the rigth approach to my
problem? One user doesn’t belongs to a car (in my point of view).
Yes, your secong version would be a habtm. But what for?
If one user can have several cars, but a car only belongs to a single
user there is no need for that.
(This has nothing to do with editing)
The simple question:
Can a car have several users?
If yes, you’ll need habtm, otherwise it’s not necessary.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.