How to get user_id in the 'belongs_to' table

You can pass it inside angebot_params.

Have a look at this: