Hi I am using Devise for my user authentication suddenly my new user registration was not working.
this was error I am getting.
ActionController::In
If you're using just an API you should try:
class ApplicationController < ActionController::Base protect_from_forgery unless: -> { request.format.json? } end
http://edgeapi.rubyonrails.org/classes/ActionController/RequestForgeryProtection.html#method-i-protect_against_forgery-3F