嘿,我这里有一个代码段:
<div class="label"><%= f.label :course %> <span>(Does this relate to a specific course?)</span></div>
<%= check_box_tag(:no_course) %>
<%= label_tag(:no_course, "None") %><br />
<%= f.collection_select(:course_id, @current_account.courses.find(:all, :order => "name"), :id, :name) %>
我怎么能做到这样
<%= f.collection_select(:course_id, @current_account.courses.find(:all, :order => "name"), :id, :name) %>
仅显示时
<%= check_box_tag(:no_course) %>
是用javascript选择的吗?
谢谢!