gem 'formtastic-bootstrap'
<%= semantic_bootstrap_nested_form_for(@nurse_info) do |f| %>
<%= f.input :name, :as=>:String, :required=>true, :input_html=>{:onchange=>"makesure()", :onblur=>"checked_changed()"} %>
<%= f.input :sex, :as=>:radio, :collection=>["女", "男"], required => true %>
<%= f.inputs '选择题库' do %>
<%= f.input :exam_storage, :as =>:check_boxes, :colletion=>
NurseAid::NurseExamStorage.where(:type_num=>0, :sort_id
=>current_admin_user.kf_sort_id) %>
#显示的是每个数据的name属性
<%end%>
<%= f.actions do %>
<%= f.action :submit, :label => "确定" %>
<%= link_to "取消", {:action => :index}, :class=> "btn btn-primary" %>
<% end %>
<% end %>
<%= semantic_bootstrap_nested_form_for @nurse_info,
:url=>url_for(:page=>params[:page], :id=>@nurse_info.id, :action=>"update") do |f| %>