Form Submit button only works after reload

前端 未结 6 1379

I have an index page that builds a table, and I am trying to allow users to edit line\'s in the table. I am trying to do this in the most basic way possible - no javascript

6条回答
  •  夕颜
    夕颜 (楼主)
    2020-11-29 09:53

    For rails 5, try using data: { turbolinks: false } inside any links to the page containing the form.

    E.g. <%= link_to "Get in Touch", 'contact', data: { turbolinks: false } %>

提交回复
热议问题