I need to send json response depends on user entered data in input, but I\'m failing to send simple json request.
I followed this article - http://paydrotalks.com/po
The simplest way is render json: {foo: 'bar'}
render json: {foo: 'bar'}