Forum: Ruby on Rails How to process request from another domain

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Ffb15a8418eb7f49060b6764aba1dc52?d=identicon&s=25 Rm Rm (rmehta)
on 2007-07-03 20:31

In my application a mobile device sends a request to tomcat servlet, and
then the servlet needs to send a request to a rails controller method
for some processing to be done. After the processing the rails will send
a http request to another tomcat servlet to send the processed results
back to the device.

I cannot avoid the tomcat route because the gateway to send/receive
request to mobile device has the api in java only. I have to go through
this route only.

But my problem is that from the ruby code, I can do the processing and
send the request to tomcat also to send the response. But how do I tell
the action in controller that there is no view associated to be shown,
and after Net:HTTP call nothing needs to be done.

15eb647956921a6bc9655c3513feb139?d=identicon&s=25 lanzm (Guest)
on 2007-07-04 15:41
(Received via mailing list)
if you have nothing to render, you can write this:

  render :text => "", :layout => false

this will not render your layout nor any output
Ef3aa7f7e577ea8cd620462724ddf73b?d=identicon&s=25 Rob Biedenharn (Guest)
on 2007-07-04 16:23
(Received via mailing list)
render :nothing => true

On Jul 4, 2007, at 9:40 AM, lanzm wrote:

>> In my application a mobile device sends a request to tomcat
>> through
>> Thanks.
Rob Biedenharn
This topic is locked and can not be replied to.