More Related Content Similar to Trailblazer Rails Architecture (20) Trailblazer Rails Architecture2. Tralblazer
Introduces several new abstraction
layers into rails.
It gently enforces encapsulation,
and intuitive code structure.
It answers the question of "Where
do I put this kind of code?"
4. Current Rails Architecture After 1 month
Model View
Controller
concerns
concerns
Query Interface
concerns presenter
validations callbacks
helpers!
helpers!
helpers!
helpers!
helpers!helpers!
helpers!
concerns? Service Object
Form Object
5. “The Puristic Rails Way isn't
appropriate for projects with a
complexity greater than a 5-minute
blog. Full stop.”
Nick Sutterer
18. Operation
● Contain all the business Logic
● Every operation validates its input
using a form object
● A form is called contract.