SyntaxFix
Write A Post
Hire A Developer
Questions
The simplest solution for the problem is do standard things in your controller or you can directely put it into ApplicationController
class ApplicationController < ActionController::Base protect_from_forgery with: :exception, prepend: true end