commiting rails portion