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

Added better_errors for more informative error pages in dev env #353

Merged
merged 6 commits into from
Nov 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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