I had great difficulty with this code. 

Firstly, when only the ```:sash_id''' of the user document (aka record) is updated, the association between the user and the sash is created, but not the association with the sash and the user. So ``` @sash.user = nil```. This code solves that issue by also saving ```:user_id``` on the sash document.