I’d like to have a link under simple_captcha image. Click to link should reload simple_captcha image. I can’t find in gem any information about it. How can I update it? Thanks for advance.
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.
I have also faced the same issue then after i find the solutionas mentioned below .
As i have used jquery to refresh the captcha div this is the javascript code i have used to refresh the captcha .
After this put the view page codes for captcha in a partial file and render the partial everytime when the refresh div (any link or button) is clicked by the above codes pasted . It will call a action there you need to render the partial only . (here refresh_captcha_div in users/dashboard controller). below are the view files codes of mine for reference .
This is the view page codes where i am rendering the partial and then the codes in the partial are