-
Notifications
You must be signed in to change notification settings - Fork 279
New issue
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
Undefined method `params' for #<Hash> #1159
Labels
Comments
What is the situation that leads to having a hash here instead? |
@waltjones I dug a bit into it: We are still using Rails 4.2, and the signature of the |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi there,
Looking at our NewRelic errors dashboard I notice quite a lot of exceptions that we don't see in Rollbar. Digging a bit deeper they are all raised from requests with non-existent paths that raise a
RoutingError
.The relevant code is here: https://github.com/rollbar/rollbar-gem/blob/master/lib/rollbar/middleware/rails/show_exceptions.rb#L10
I'm not too familiar with how rails integrates with rack but to me this code looks intuitively wrong:
env
is supposed to be a hash and so that line should probably be:(The
to_s
call onkey
is also not necessary, sincekey
is always a String)Here is more context from NewRelic:
The text was updated successfully, but these errors were encountered: