Rails 3+4 support now! Simple Captcha is the simplest and a robust captcha plugin. Its implementation requires adding up a single line in views and in controllers/models.
MIT License
106
stars
73
forks
source link
404 when image URL is not loaded from rails page #24
I'm trying to integrate simple-captcha into a non-rails page, but even though I can get the captcha through a call to my rails API, the generated img "src" always assumes it will be used by the same rails app.
I need a way to force the generated img "src" to use the absolute URL.
I'm trying to integrate simple-captcha into a non-rails page, but even though I can get the captcha through a call to my rails API, the generated img "src" always assumes it will be used by the same rails app.
I need a way to force the generated img "src" to use the absolute URL.
This code in view.rb needs to change:
Also, that line is duplicated in that file and could be refactored.