updated attrs_for to support both strings and symbols