The period in `[:rating].` here I think is causing a syntax error -- it should be a comma.