how to do rails?