我正在使用一些看起来像这样的现有代码:
ff.input :answer_id,
:as => :surveyor_radio,
:collection => [[a_text(a, nil, render_context).html_safe, a.id]],
:label => false,
:input_html => {:class => "someclass"),
:response_class => a.response_class
并生成类似这样的内容:
<li class="choice">
<label for="123">
<input class="someclass" id="123" name="foo" type="radio" value="bar" />
BAR
</label>
</li>
我想在结束和结束之间添加一段解释性文字,如下所示:
<li class="choice">
<label for="123">
<input class="someclass" id="123" name="foo" type="radio" value="bar" />
BAR
</label>
<p>It is really important that you understand all of this information about BAR before you pick it, so read this carefully.</p>
</li>
我没有太多运气找到一种方法来做到这一点。有什么想法吗?
谢谢!