:class => grow ? "comment_content grow" : "nogrow" :class => grow ? "comment_content grow" : "nogrow" works fine for me, you just need to end the line with %> . I suppose you could add some brackets - :class => (grow ? "comment_content grow" : "nogrow") , better for readability.
source share