Search code examples
ruby-on-railsruby-on-rails-4turbolinks

Rails form not working after link_to


When I click on a link and move to a new page, my form doesn't submit.

It works normally if I refresh though. It also works normally after disabling Turbolinks.

How can I resolve this and keep using Turbolinks?


Solution

  • jquery.turobolinks gem sorted out a similar issue i was having. Just make sure you include it directly after jquery.

    It just makes all your js bindings etc still work with turbolinks