<%= form_for('', :html => { :multipart => true }, :url => {:controller => 'exercise', :action => 'commit_exercise', :id => exercise.id },:remote=>true ) do |f| %>
提交
<%= f.check_box 'show_result', :value => exercise.show_result%> <%= label_tag '_show_result', '允许学生查看测验结果' %>
<% end %>