gazay/gon — pull request #57 by johnbintz (2012-08-28 13:39:51+00:00)
Title: Generate a proper JSON response in gon.watch

`gon.watch`'s render response of the target variable was not being done as a JSON response, so `$.ajax` on the browser end couldn't parse the delivered string response. This commit uses `render :json` rather than `render :text` to send the data so that the data is parsed on the browser end, ready for use.