Rails' concat method and blocks with do…end doesn't work
问题 I just read about Rails' concat method to clean up helpers that output something here http://thepugautomatic.com/2013/06/helpers/. I played around with it, and I have found out, that it doesn't react the same way to blocks with curly braces and to blocks with do...end. def output_something concat content_tag :strong { "hello" } # works concat content_tag :strong do "hello" end # doesn't work concat(content_tag :strong do "hello" end) # works, but doesn't make much sense to use with multi line