authentication-zero icon indicating copy to clipboard operation
authentication-zero copied to clipboard

Before process_action callback :verify_authenticity_token has not been defined

Open hasandiwan opened this issue 1 year ago • 0 comments

$ rails db:migrate Loading application environment... Loading code in search of Active Record models... bin/rails aborted! Loading models failed! Error occurred while loading application: Before process_action callback :verify_authenticity_token has not been defined (ArgumentError) app/controllers/sessions/omniauth_controller.rb:5:in <class:OmniauthController>' app/controllers/sessions/omniauth_controller.rb:4:in module:Sessions' app/controllers/sessions/omniauth_controller.rb:3:in `

'

Caused by: ArgumentError: Before process_action callback :verify_authenticity_token has not been defined (ArgumentError)

            raise ArgumentError, "#{type.to_s.capitalize} #{name} callback #{filter.inspect} has not been defined"
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

sessions/omniauth_controller.rb:5:in <class:OmniauthController>' sessions/omniauth_controller.rb:4:in module:Sessions' omniauth_controller.rb:3:in `

' Tasks: TOP => erd => erd:generate => erd:load_models (See full trace by running task with --trace)

Help?

hasandiwan avatar Jan 01 '24 18:01 hasandiwan