Adding rails requests formatting