Be the first to like this
Railsberry Lightning Talk: Playing with Render
Slides from the lightning talk I gave at Railsberry* on how you can wrap Rails' render function to expose universal options and and additional security to an API. It's an appetizer: I'll be talking in more detail about API uniformity and control at the Barcelona Ruby Conference in September 2012.
Best part of the talk: afterward, Yehuda Katz (yes, that @wycats) came by to tell me he had the same initial reaction [wrapping render = bad idea], but that no, the approach is quite fine. The signature is stable and ActionController::Metal does it too. Score.
* one of the sweetest Rails conferences I've been to, incidentally.