The problem: semantic formats for returned HTML for AJAX In a previous Rails 2 project, we decided that Rails apps return 3+ kinds of content: A complete HTML page, for user viewing JSON (for JS/web API viewing) A partial HTML page, for jQuery DOM swapping/ However, it was hard to know when to return a full HTML page, and when to So we invented a…