Answer the question
In order to leave comments, you need to log in
How to make remote form friends with Turbolinks 5?
There is a page with a post (show). The page has a form for adding a comment. Installed on the form remote: true
.
If you go to the page directly by URL or refresh the page (F5), then everything is successfully added.
If you go to the page from the index (for example: a list of posts (index), click on the title, get to the posts page (show)), then the comment will not be added, since the form will not be sent.
Also
on the "Submit" button hangs this: It also does not work if the page is navigated and works if the page is loaded (reloaded)
What is the problem? data: { disable_with: 'Ожидайте' }
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question