December 2008
2 posts
merb's provides/display in rails
DHH posted about merging merb’s provides/display into rails. He proposed used a dual of respond_to and respond_with, similar to merb’s provides/display, with a couple tweaks to allow each action to respond to different types. There are a couple things about the API he suggested which I don’t love: I don’t like the way respond_with(@deals, :to => [:html, :json, :xml])...
Dec 26th
multi-line strings in javascript
var myString = ' first line \ second line \ third line \ ';
Dec 3rd