Skip to content
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

Render a 404 error when you get a RecordNotFoundError. #524

Merged
merged 1 commit into from
Jun 19, 2020
Merged

Conversation

jwoertink
Copy link
Member

Fixes #150

Generated apps will now send all record not found errors to 404, and ignore reporting them to bug trackers.

I'm actually surprised we haven't added this in yet, and no one has mentioned it... We've been using this in our apps for a long time now because we get people hitting pages like /whatever/SELECT*FROM%20users and all that.

Copy link
Member

@paulcsmith paulcsmith left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great :D

@jwoertink jwoertink merged commit 1fb6e57 into master Jun 19, 2020
@jwoertink jwoertink deleted the issues/150 branch June 19, 2020 20:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Handle record not found error in Errors::Show
2 participants