我有单选按钮,如果我选择第一个变体,我想我<%= f.text_field :price %>
是可用的,如果我选择第二个变体<%= f.text_field :price %>
不可用
<%= f.radio_button :price, true %><%= f.label :price %>
<%= f.text_field :price %>
<%= f.radio_button :price, false %><%= f.label :price %>
<%= radio_button_tag(:price, "price") %>
你怎么能这样做?