Adding in rails code