Adding rails syntax