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

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

    I am running vagrant, rails 5 and ruby 2.3 and I added the below to my config/environments/development.rb and got it working.

      # Allow usage of better_errors on Vagrant
      BetterErrors::Middleware.allow_ip! "10.0.2.2"
    
      # Show full error reports and disable caching.
      config.consider_all_requests_local = true
    

    Same answers as above but just wanted to confirm it for anyone running the rails 5 beta.

提交回复
热议问题