Open in app
Home
Notifications
Lists
Stories

Write
Robin Seo
Robin Seo

Home

Mar 19

Rails API elegant error handling — The centralized way

Rails application raise error on various context. for example, ActiveRecord find method raise ActiveRecord::RecordNotFound when it couldn’t find record with given condition. Rails application has built-in error handler which is in Rack middleware. In case of ActiveRecord::RecordNotFound, Rails API application respond with error described on below. Since the rails…

Rails

3 min read

Rails API elegant error handling — The centralized way
Rails API elegant error handling — The centralized way
Robin Seo

Robin Seo

Rubyist, that’s all.

Following
  • This Week In I/O

    This Week In I/O

  • FlowMapp

    FlowMapp

  • The Educative Team

    The Educative Team

  • Seong-Am Kim

    Seong-Am Kim

  • Sunny Beatteay

    Sunny Beatteay

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Knowable