app/controllers/application_controller.rb
# Prevent CSRF attacks by raising an exception.
# For APIs, you may want to use :null_session instead.
Prevent CSRF attacks by raising an exception.
For APIs, you may want to use :null_session instead.
Prevent CSRF attacks by raising an exception . For APIs you may want to use : null_session instead .
def render_error(exception)
    Rails.logger.fatal exception
    Rails.logger.fatal exception.backtrace.join("\n")
    respond_to do |format|
      format.html { raise exception }
      format.all  { render text: exception.message, status: 500 }
    end
  end
def render_error ( exception ) Rails . logger . fatal exception Rails . logger . fatal exception . backtrace . join ( "\n" ) respond_to do | format | format . html { raise exception } format . all { render text : exception . message , status : 500 } end end
Prevent CSRF attacks by raising an exception.
Prevent CSRF attacks by raising an exception .
exception
<not_specific>