You likely want to do something like this is your controller:
current_user.items.create(params[:item])
This will automatically set the user_id for you.
You likely want to do something like this is your controller:
current_user.items.create(params[:item])
This will automatically set the user_id for you.