Epic: From 317 Lines to 166 — A Controller Refactoring Journey
A four-part series documenting the systematic refactoring of a bloated admin controller into clean, reusable patterns.
Read more →A four-part series documenting the systematic refactoring of a bloated admin controller into clean, reusable patterns.
Read more →Let models declare field config, let a resolver infer the rest from ActiveRecord metadata.
Read more →Make your update_field action reusable across controllers with a simple concern interface.
Read more →Stop building filter options inline in your controllers. Extract them to a presenter with memoization.
Read more →Controllers shouldn't know which fields are editable or how to record changes. Extract that to a service.
Read more →