tcocca/dynamic_forms — Issue #1: no way to attach classes to form elements
Author: mwotton
Created: 2012-01-12 01:14:04+00:00
State: open

I'm trying to create a checkbox group. Unfortunately, the checkbox_group helper in pp/helpers/dynamic_forms/check_box_group_helper.rb doesn't provide a way to add a class to the generated label.

line 73: out << "
#{markup}#{item}
\n"

I'm passing a custom block in now, but this doesn't help me much in the general run - I'd have to write different code for each different kind of form. Would it be reasonable to attach a class to all form elements?