form_for Vs. form_tag
sabatsu opened this issue · comments
sabatsu commented
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.
Michael Grosser commented
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