I have a class
class DataListBuilder
include ActionView::Helpers::TagHelper
include ActionView::Helpers::CaptureHelper
include ActionView::Helper
options_column
is a "block view", I'd remove the = in <%= l.options_column do |c| %>
, that's for sure. Then, I'd use concat
in options_column
instead of returning it directly as a string.
Anyway, the simple solution is here (I've used it, no problems at all):
https://github.com/markevans/block_helpers