Ruby on Rails patterns – decorator vs presenter

A decorator is more of a “let’s add some functionality to this entity”. A presenter is more of a “let’s build a bridge between the model/backend and view”. The presenter pattern has several interpretations.

Decorators are generic/general purpose. Presenters have a narrower range of responsibilities/uses. Decorators are used across domains, presenters are almost always related to view-like functionality.

  • Draper site
  • RailsCasts Draper Episode

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)