Sign in through GitHub

Please read for an updated status on RailsCasts:

Learn more or hide this

Draper

#286 Draper

Oct 03, 2011 | 12 minutes | Views, Refactoring, Plugins
Clean up complex view logic using Draper. This gem provides decorators (much like presenters) which bundles view logic in an object oriented fashion. In this episode I do a step-by-step refactoring of a complex template into a decorator.
  • Download:
  • source codeProject Files in Zip (125 KB)
  • mp4Full Size H.264 Video (27.2 MB)
  • m4vSmaller H.264 Video (14.6 MB)
  • webmFull Size VP8 Video (16.7 MB)
  • ogvFull Size Theora Video (32.1 MB)