It is usually not a good idea to expose id field in the changeset.
You can do it in different ways, but if You have already a user, You could use put_assoc.
Another way to do it is to use build_assoc.
It is usually not a good idea to expose id field in the changeset.
You can do it in different ways, but if You have already a user, You could use put_assoc.
Another way to do it is to use build_assoc.