Working rails single instance