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

Flash notices do not appear when using :remote => true on a form and an associated *.js.erb file #46

Open
acrolink opened this issue Sep 28, 2017 · 4 comments

Comments

@acrolink
Copy link

However, when hitting F5 (page refresh), they appear.

@ErwinM
Copy link

ErwinM commented Sep 30, 2017

I have the same issue: using a button which post using remote:true

@ErwinM
Copy link

ErwinM commented Sep 30, 2017

@acrolink To get it working you can add the line $(document).triggerHandler('ajaxComplete'); to your .js template..

@itsgg
Copy link

itsgg commented Feb 10, 2018

@nsoseka
Copy link

nsoseka commented Aug 8, 2019

If you want to see flash messages when you make AJAX request you have to render the flash in *.js.erb file. This code will do

UnobtrusiveFlash.showFlashFromCookies();

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

4 participants