为了避免新建的时候重复的点击提交按钮,可以加一个限制
<%= f.submit nil, :class => 'btn btn-primary', :data => { :"disable-with" => "请稍等..." } %>
本文共 171 字,大约阅读时间需要 1 分钟。
为了避免新建的时候重复的点击提交按钮,可以加一个限制
<%= f.submit nil, :class => 'btn btn-primary', :data => { :"disable-with" => "请稍等..." } %>
转载于:https://www.cnblogs.com/iwangzheng/p/4914760.html