8 ms·
Rails Presenters: filling the Model-View-Controller gap
- nfm 13y agoIf you're interested in using presenters with Rails, the draper gem is worth a look: https://github.com/drapergem/draper https://github.com/drapergem/draper
- steveklabnik 13y agoThanks for the link! I'm happy to answer any questions about Draper or presenters as a strategy in Rails apps.
- ludicast 13y agoPresenters are awesome (I second the that draper is excellent). Once you start decorating you find yourself decorating everything, because Ruby makes it so easy to throw on one-off delegates. I've even taken a presenter-ish approach to all my DCI implementations now and my model code is really clean.