Skip to content
This repository has been archived by the owner on Jan 3, 2025. It is now read-only.

Commit

Permalink
Added better_errors for more informative error pages in dev env (#353)
Browse files Browse the repository at this point in the history
* added better errors to gemfile

* added better errors to gemfile

* added error route in dev and made config changes to get better_error working

* removed test#error from routes.rb

* Removed error function from controller
  • Loading branch information
dunkOnIT authored Nov 28, 2023
1 parent 53d6505 commit bfe8d06
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -88,4 +88,8 @@ group :development do
# Speed up commands on slow machines / big apps [https://github.com/rails/spring]
# gem "spring"
gem 'ruby-prof'

# Better Errors replaces the standard Rails error page with a much better and more useful error page.
gem 'better_errors'
gem 'binding_of_caller'
end
3 changes: 3 additions & 0 deletions config/environments/development.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
Rails.application.configure do
# Settings specified here will take precedence over those in config/application.rb.

# For better_errors
BetterErrors::Middleware.allow_ip! '0.0.0.0/0'

# In the development environment your application's code is reloaded any time
# it changes. This slows down response time but is perfect for development
# since you don't have to restart the web server when you make code changes.
Expand Down

0 comments on commit bfe8d06

Please sign in to comment.