The flash method only shows the message after the page reloads… what do I do to get it to appear when I’m using :remote => true?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
if you are using :remote => true you are actually doing Ajax request.
in that case, the flash will not work.
What you need is to have a js function that mimics that flash message.
I usually have that: (Mootools, but you probably get the idea)
Whenever I use :remote => true, I have that in the js view