transaction in rails post