Fixed rails parsing syntax