Rails and Gates