Archive for 'AJAX'

Building Custom XML Responses in Rails

Assume you have a CitiesController with just one action capital_city, which doesn’t need any of the RESTful actions. I set up a custom route for this one action. The capital_city action returns the xml like the following, for example: Here is what the entry in the routes.rb file looks like: Your controller may look something […]

jQuery Makes Writing JavaScript Fun Again

Nick Pink attended the Silicon Valley HTML5 Users Group meeting recently and here are his notes which I am posting with his permission. Last night I went a meetup sponsored by the Silicon Valley HTML5 Users Group called “jQuery Makes Writing JavaScript Fun Again”. The speaker, Dr. Doris Chen of Microsoft, talked specifically about AJAX […]