rails/rails — comment on commit 0d3333257156544feba729ba28f6874d5a30d561
File:  line 0
By sakuro:

This gist serves /test/test action and sends head no_content.

rails new testapp -m https://raw.github.com/gist/1312547/5ab6a104d7a125bba5cb1b1d7f59a4a03f857e1e/gistfile1.rb
cd testapp
script/rails s

open browser's javascript console and click links one kicks $.getJSON and another does $.ajax.