flex rails