无法检查单选按钮标记
我完全不知道无法点击单选按钮的原因。
我使用内容来生成单选按钮
- User::NOTIFY_POLICY.each do |type|
.radio.radio-info.radio-inline
= f.radio_button :notify_policy, type
= f.label :notify_policy, type
<div class="form-group">
<div class="col-sm-8">
<div class="radio radio-info radio-inline">
<input type="radio" value="on_price_change" checked="checked" name="user[notify_policy]" id="user_notify_policy_on_price_change">
<label for="user_notify_policy">on_price_change</label>
</div>
<div class="radio radio-info radio-inline">
<input type="radio" value="only_lowest_price_appears" name="user[notify_policy]" id="user_notify_policy_only_lowest_price_appears">
<label for="user_notify_policy">only_lowest_price_appears</label>
</div>
</div>
</div>