Remove unused variables in metric partial, fix Rails4.1