update errors.add_to_base("x") to Rails 3 errors.add(:base,"x")