Skip to content

Turn off CSRF token check

itmammoth edited this page Jan 25, 2020 · 1 revision

Create config/initializers/rails_sortable.rb.

Rails.configuration.to_prepare do
  SortableController.class_eval do
    protect_from_forgery with: :null_session
  end
end
Clone this wiki locally