Search code examples
ruby-on-railsajaxtokenin-place-editauthenticity

rails in_place_edit: how do I pass an authenticity token?


I am trying to get in place editing working but I am running into this error:

ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken)

I understand that rails now wants to protect against forgery and that I need to pass a form authenticity token but I am not clear on how to do this with the in_place_edit plugin.


Solution

  • I found a solution. I put the instructions here. Take a look at the part on patching in_place_edit.