I recently upgraded rails 7.0.8 app to rails 7.1.1. Now, I’m not getting the web console on exception pages. But when I put console somewhere in a controller, web-console pops up. The issue is on exception pages.
I’m using
- Rails 7.1.1
- Ruby 3.2.2
- web-console’, ‘4.2.1
>Solution :
Make sure that your application’s configuration allows for the web console to be displayed on exception pages.
In your config/environments/development.rb file, you should have the following configuration:
config.web_console.whitelisted_ips = '127.0.0.1'
