Better Errors Gem not working in local browser, no errors visible

后端 未结 5 775
借酒劲吻你
借酒劲吻你 2021-01-01 18:17

I added the Better Errors gem to my gemfile like as seen in my gemfile below, and ran bundle and saw Using better_errors 1.1.0 and restarted my server several t

5条回答
  •  借酒劲吻你
    2021-01-01 18:53

    in addition for all better you need to add this to your config/environments/development.rb:

    BetterErrors::Middleware.allow_ip! "TRUSTED_IP" where "trusted_ip" is "REMOTE_ADDR" in default error page for me it's 10.0.2.2

提交回复
热议问题