Submit button does not work unless I refresh the page form_for Rails

后端 未结 2 1341
遇见更好的自我
遇见更好的自我 2021-01-04 05:07

I have an app that has a problem model and when I go to create a record the submit button does nothing. No errors given it just simply doesnt execute, unless I refresh the p

2条回答
  •  渐次进展
    2021-01-04 05:51

    I had same issue

    Before

    <%= simple_form_for(:schedule_list, url: schedulelists_create_with_block_path, :html => { novalidate: false}) do |f| %> 
    
    <%= f.button :submit, class: 'pull-right' %> <%end%>

    After

    <%= simple_form_for(:schedule_list, url: schedulelists_create_with_block_path, :html => { novalidate: false}) do |f| %> 
        
    <%= f.button :submit, class: 'pull-right' %>
    <%end%>

提交回复
热议问题