We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
In the rails console I run the command ExceptionHandler::Exception.all.first which gives me the first record as expected:
ExceptionHandler::Exception.all.first
#<ExceptionHandler::Exception id: 1, class_name: "ActionController::RoutingError", status: "404", message: "No route matches [GET] \"/asdf\"", trace: "/home/adamg/.rvm/gems/ruby-2.6.5/gems/actionpack-6...", target: "http://localhost:3000/404", referrer: nil, params: "{}", user_agent: "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36...", created_at: "2020-10-17 20:53:59", updated_at: "2020-10-17 20:53:59">
But if I try to run ExceptionHandler::Exception.all.first.class_name I get:
ExceptionHandler::Exception.all.first.class_name
Traceback (most recent call last): 1: from (irb):13 NoMethodError (undefined method `env' for nil:NilClass) Did you mean? end
This also happens for .status .message .trace etc..
.status
.message
.trace
What is the correct way of accessing this information from the database?
The text was updated successfully, but these errors were encountered:
Apologies for the reply, been extremely busy.
I will take a look in a minute for you
Sorry, something went wrong.
No branches or pull requests
In the rails console I run the command
ExceptionHandler::Exception.all.first
which gives me the first record as expected:But if I try to run
ExceptionHandler::Exception.all.first.class_name
I get:This also happens for
.status
.message
.trace
etc..What is the correct way of accessing this information from the database?
The text was updated successfully, but these errors were encountered: