<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; ">Hi James,<DIV><BR><DIV><DIV>On Mar 14, 2007, at 7:42 AM, James Stewart wrote:</DIV><BLOCKQUOTE type="cite"><SPAN class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><DIV>I think this is my first post here, after lurking for a while.</DIV></SPAN></BLOCKQUOTE><DIV><BR class="khtml-block-placeholder"></DIV>Welcome!</DIV><DIV><BR><SPAN class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><DIV><DIV><BLOCKQUOTE type="cite"><DIV>What I wanted to be able to do was to be able to accept my input as XML, JSON, microformats or a regular query string. It's quite straightforward to add parameter parsers for different types of input in Rails 1.2, but distinguishing the microformat input from a standard query string was a bit trickier.</DIV></BLOCKQUOTE><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Um, sorry, I'm not quite following you. Do you mean *encoding* the microformat data _into_ the query string? My understanding is that the query string is urlencoded vs. HTML, so there's no ambiguity. But I'm probably completely missing your point.</DIV><BR><BLOCKQUOTE type="cite"><DIV>I wrote up a few notes on my blog:</DIV><DIV><FONT class="Apple-style-span" color="#0000DD"><FONT class="Apple-style-span" color="#006312"><BR class="khtml-block-placeholder"></FONT></FONT></DIV><DIV><A href="http://jystewart.net/process/2007/02/intercepting-microformats-in-rails-input/">http://jystewart.net/process/2007/02/intercepting-microformats-in-rails-input/</A></DIV><DIV><FONT class="Apple-style-span" color="#0000DD"><FONT class="Apple-style-span" color="#006312"><BR class="khtml-block-placeholder"></FONT></FONT></DIV><DIV>I've also written up a longer piece on the process which should appear on infoq.com some time soon.</DIV></BLOCKQUOTE><BR></DIV><DIV>Look forward to it -- please let us know when it is up.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>- Ernie P.</DIV><DIV><BR class="khtml-block-placeholder"></DIV></DIV></SPAN></DIV><BR></DIV></BODY></HTML>