use update_attributes instead of update_attribute  to trigger counter cache.  for issue #371