trying to fix erb (ruby) attributes, "&&" is getting swallowed
test for && issue
slight refactoring