ruby switches post