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

后端 未结 5 804
借酒劲吻你
借酒劲吻你 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:59

    With Vagrant, add this to your app's config/environments/development.rb (anywhere inside the configure block):

    BetterErrors::Middleware.allow_ip! "0.0.0.0/0"
    

    Then restart your server.

    (This is just a slight variation on Sasha's solution.)

    DO NOT add this to your production environment!

提交回复
热议问题