Create an initializer called change_csrf_name.rb
inside this file you can change :name => 'xyz' . that it can break some built-in functions that you did not expect.
module ActionView module Helpers module CsrfHelper def csrf_meta_tags if protect_against_forgery? [ tag('meta', :name => 'csrf-param', :content => request_forgery_protection_token), tag('meta', :name => 'csrf-token', :content => form_authenticity_token) ].join("\n").html_safe end end end end end
source share