Added rails support