Browse
Ruby on Rails Development
-

Ruby on Rails Debugging: Tools, Errors and Fixes
A practical hub for ruby on rails debugging: a repeatable workflow, view helpers, the Rails logger and its levels, interactive…
-

Using rescue_from to Centralize Controller Errors
Learn how rescue_from registers handlers for exception classes in a Rails controller, how Rails picks between them, and how to…
-

Detecting and Fixing N+1 Queries in Rails
How to find rails n+1 queries with Bullet, logs and monitoring, and fix them with includes, preload, eager_load, counter caches…
-

Building Custom 404 and 500 Error Pages in Rails
Replace Rails’ static error files with controller-rendered 404 and 500 pages that use your layout, then preview and test them…
-

Diagnosing a 500 Internal Server Error in Rails
A practical routine for tracking down a Rails 500 error: find the right log, check the log level, add targeted…
-

Debugging a Rails App with Byebug and the Debug Gem
A practical route for when your tests miss a bug: view helpers, the logger and log levels first, then the…