Adding rails support.