Added auto-generated rails code