Search code examples
ruby-on-railsauthenticity-token

Remove div from authenticity_token in Rails?


How can I remove the div from authenticity_token in Ruby on Rails?

Thanks.


Solution

  • You might be able to work around it by using form_authenticity_token as I believe this only returns the value that should be stored.

    Take a look at the documentation for more information.