I’m using the respond_to and respond_with in a rails app, but in one use case I need to respond with just a text for just one of the resource formats (:json)… But I can’t find how to do this…
I want something like this (I know this doesn’t work)
def create
...
respond_with(:json, render :text => "Successfully Done!")
end
Any Idea??
Thanks!
It seems that this may be what you are looking for: