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

form_for Vs. form_tag #374

Open
sabatsu opened this issue Dec 1, 2020 · 1 comment
Open

form_for Vs. form_tag #374

sabatsu opened this issue Dec 1, 2020 · 1 comment

Comments

@sabatsu
Copy link

sabatsu commented Dec 1, 2020

I am using this gem in my app in 2 different locations.
One of them works perfectly this is inside a form_for type.
The other one does not work for me - params["g-recaptcha-response"] returns empty and verify_recaptcha returns false. This is a form_tag type. Anything I can try to fix this issue? Is it really connected to the form_tag or it might be something else? I tried to debug it this is the only difference between the 2 locations I am using recaptcha.

@grosser
Copy link
Collaborator

grosser commented Dec 2, 2020

sounds like it did not even get rendered or somehow ended up outside the form tag ...

  • check that the g-recaptcha-response got send
  • inspect the html for the input being there
  • check the form is not submitted via js

... otherwise no real idea what the difference would be

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