On 6/7/07, [email protected] [email protected] wrote:
I want to develop a controller which acts like a servlet in java. That
means it doesn’t have any views associated with it, it just waits for
requests and treats those requests.
Though it’s not a web service because I don’t want to do RPC from a
client, I want to send an XML to it and then this controller will
treat the request.
At the very least you should at least be returning an HTTP header when
the request is processed. If you don’t want a view, thats easy. Just
make the actions in your controller look something like this:
# process the request here…
return render(:nothing => true, :status => status_from_processing)
Return a status that is appropriate to the result of whatever
processing you have done. If you aren’t familiar with them, you can
learn more about them here:
F. Morgan Whitney