Rails and bases