Is app/views the worst part of your codebase? Have you ever told someone on your team “remember to update the client-side views too”? Too long has the node.js community touted their advantage of using the same code on the client and the server. It’s time that Rails got a few punches in.
We should think of views as objects, not template files. In this talk I show how that lets us tease apart presentation from data, and build logic-less templates that are shared between client and server.
I gave this talk at RailsConf 2014. Since I used reveal.js to make the presentation, the PDF version looks a bit janky (and you lose the ability to play around with railsgenius if you're paging through it!) You can check out a better version of this presentation running on github.com: http://a-warner.github.io/rails-holy-grail