El sábado, 21 de septiembre de 2024 16:31:21 (CEST), Gloufy escribió:
> Hi Sergio,
> 
> I've a question a I've a error : An
> ActionController::InvalidAuthenticityToken occurred in fiche#render_field:
> 
> It's when a user fill zip code, another field (city) must be updated.
> 
> Do you know why ?
> 
> Cédric

Hi

That's a XHR POST request, so it's probably happening because the x-csrf-token 
header is not in the request. Can you check the request headers with web 
inspector?

The header should be added by jquery_ujs or rails_ujs automatically to all xhr 
requests. Do you have one of those libraries in your application.js? What 
rails version are you using?

Regards,
Sergio


-- 
You received this message because you are subscribed to the Google Groups 
"ActiveScaffold : Ruby on Rails Gem" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/activescaffold/2520108.jE0xQCEvom%40pc-sergio.

Reply via email to