shout.user_id = user.id should be shout.user = user