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
One Simple way is:
def my_action render :json => {:name => "any name"} end