What's the best way to output different types of responses f.ex xml, json, html, rss etc. in the same controller action, and how would I send the preferred content-type to the action?
Ex. rails URLs:
- /user/add.xml = XML output
- /user/add.js = JS/JSON output