In your controller add
skip_before_filter :verify_authenticity_token
Hope this will help !
Thanks for that tidbit, but the problem was that the wait_message()
function destroyed the content of the div with the form in it and
replaced it with the message, S E A R C H I N G
Of course, the form is not yet submitted and it contained the auth token
in a hidden field! So the more is: don’t destroy the form in your
:before callback.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.