autosave rails Open options Share https://blog.saeloun.com/2021/06/08/rails-7-ensure-has-one-association-callbacks/