Rails Code Review
summary
Live code review shows concrete fixes: move pagination and validation logic out of controllers into models or a service object, use exceptions and save! for failures, and extract the big image routine into an image Cropper class or plugin. Replace repeated tab markup with a tab helper using named routes, prefer an options hash for future changes, and consider a presenter pattern or block helpers for complex view logic so views stay thin and intention-revealing.
AI-written summary · about
chapters (6)
- 0:00Start
- 0:28Live Code Review
- 0:52Community Controller
- 36:53Prisoner Patterns
- 40:49Conditional Presentation Logic
- 41:15Block Helper
related talks
33mSo You Want to Start Refactoring?
38mRails hurts, because you're using it wrong. Let's fix that
46mRails as a piece of birthday cake
39mExploring Rails anti-patterns
41mOff the Tracks - Challenging the Rails Mindset
28mDo Your Views Know Too Much?
26mSemi Automatic Code Review
35mRails vs. Object Oriented Design
