Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle Ajax form submission with Turbolinks #133

Closed
paulcsmith opened this issue Oct 6, 2017 · 2 comments
Closed

Handle Ajax form submission with Turbolinks #133

paulcsmith opened this issue Oct 6, 2017 · 2 comments

Comments

@paulcsmith
Copy link
Member

https://github.com/turbolinks/turbolinks#redirecting-after-a-form-submission
https://m.patrikonrails.com/how-to-make-ajax-calls-the-rails-way-20174715d176

@paulcsmith paulcsmith added this to the Ready milestone Oct 6, 2017
@paulcsmith paulcsmith removed this from the Ready for most projects milestone Nov 12, 2017
@bentranter
Copy link

I can probs tackle this with the approach taken in bentranter/turbolinks, though it's still missing support for some of the rails-ujs features. I'll look into this over the next few days.

@paulcsmith
Copy link
Member Author

@bentranter Thanks Ben! Some of the Rails UJS stuff is handled because Lucky is bundled with the Rails UJS npm package. So you can do data_remote: true on a form and it submits with AJAX. So I think it just needs the turbolinks specific stuff like you did in your Turbolinks handler

skojin added a commit to skojin/lucky that referenced this issue May 3, 2020
* Handle Turbolinks-Location header in correct way
skojin added a commit to skojin/lucky that referenced this issue May 3, 2020
* Handle Turbolinks-Location header in correct way
skojin added a commit to skojin/lucky that referenced this issue May 3, 2020
* Handle Turbolinks-Location header in correct way
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants