cd into the rails directory first