Skip to content

Instantly share code, notes, and snippets.

View forsbergplustwo's full-sized avatar

Bjørn Forsberg forsbergplustwo

View GitHub Profile
p-refactor-c
Refactor this Rails 7 controller to
Additional instructions:
- We want slim controllers with logic in model, PORO, or concern.
- Only use RESTful routes. Use namespaces/nested resources for additional actions.
- Check context in the following directories and files:
app/controllers/
app/models/