rails api commit