Action Controller Best Practices

Controllers should be thin traffic cops — they receive input via params, delegate to the appropriate object, and decide what to render or redirect. Each action should be roughly 5-10 lines. If an action is longer, logic needs to be extracted.

majiayu000 7f7da4f 2 files · 12.4 KB Updated 567 repo stars

File contents

majiayu000/claude-skill-registry-data/tree/main/development/action-controller-best-practices commit 7f7da4f3aa

Frequently asked questions

npx skillmds add majiayu000/action-controller-best-practices