I use response_to and response_with in a rails application, but in one case I have to respond with text only for one of the resource formats (: json) ... But I can not find a way for this ...
I need something like this (I know this doesn't work)
def create ... respond_with(:json, render :text => "Successfully Done!") end
Any idea ??
Thanks!
source share