addressalign-toparrow-leftarrow-rightbackbellblockcalendarcameraccwcheckchevron-downchevron-leftchevron-rightchevron-small-downchevron-small-leftchevron-small-rightchevron-small-upchevron-upcircle-with-checkcircle-with-crosscircle-with-pluscrossdots-three-verticaleditemptyheartexporteye-with-lineeyefacebookfolderfullheartglobegmailgooglegroupshelp-with-circleimageimagesinstagramlinklocation-pinm-swarmSearchmailmessagesminusmoremuplabelShape 3 + Rectangle 1ShapeoutlookpersonJoin Group on CardStartprice-ribbonShapeShapeShapeShapeImported LayersImported LayersImported Layersshieldstartickettrashtriangle-downtriangle-uptwitteruserwarningyahoo

Houston Ruby Meetup: GiftWrap: Staying Sane in your View Layer

Please join us as Paul Kwiatkowski, Chief Tenacity Officer at GroupRaise describes his project GiftWrap.

GiftWrap: Staying Sane in your View Layer

-----

In any project using ERB (or Haml, etc.), view code is the part of your garden where the weeds grow quickest and thickest. Bits of formatting logic end up strewn across Models, Helpers and even View templates themselves. When GroupRaise hit this problem, we slowly added Form Objects, ViewModels and finally Presenters. That last category was so useful in organizing our view code, that I wrote a very simple gem to help other people do the same.

Learn how to slim down your Models, Views and Helpers by putting shared formatting logic where it belongs: a dedicated Presenter layer.

I'll also talk about how GiftWrap does what it does and why you might (or might not!) choose it over a more popular, well-established gem like Draper.

-----


It should be Newbie friendly, provided you have written a Rails app (ERB code). Excite!

Join or login to comment.

People in this
Meetup are also in:

Sign up

Meetup members, Log in

By clicking "Sign up" or "Sign up using Facebook", you confirm that you accept our Terms of Service & Privacy Policy