@andrewkhouzam For rails 3 conventions this could be instead of :count => errors.count.., count: errors,count
And don't leave extra spaces. Other than that your code is good.