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

Allow to test 500 error page on development environment #59

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

dzc34
Copy link
Member

@dzc34 dzc34 commented Jun 9, 2023

Allow to test 500 error page on development environment


With this PR, the following URL will return an error 500
(currently, it will display the error page public/500.html and return HTTP code 500).

http://localhost:3000/contact


Without this PR, simply modify config/environments/development.rb
file (see the code to modify below) and use the following URL:

http://localhost:3000/france_connect/particulier

-  config.consider_all_requests_local = true
+  config.consider_all_requests_local = false

ressource : https://guides.rubyonrails.org/action_controller_overview.html#rescue

@dzc34 dzc34 self-assigned this Jun 9, 2023
@dzc34 dzc34 added the documentation Improvements or additions to documentation label Jun 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant