# How to process request from another domain

**URL:** <https://www.ruby-forum.com/t/how-to-process-request-from-another-domain/108462>\
**Category:** Rails\
**Created:** [July 3, 2007, 8:31pm UTC](https://www.ruby-forum.com/t/how-to-process-request-from-another-domain/108462 "2007-07-03T20:31:10Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rmehta](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/ea666f/32.png) [@rmehta](https://www.ruby-forum.com/u/rmehta)\
**Post date:** [July 3, 2007, 8:31pm UTC](https://www.ruby-forum.com/t/how-to-process-request-from-another-domain/108462/1 "2007-07-03T20:31:10Z")

</div>

Hi,

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.

Thanks.

---

<div class="post-metadata">

**Author:** ![rmehta](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/ea666f/32.png) [@rmehta](https://www.ruby-forum.com/u/rmehta)\
**Post date:** [July 4, 2007, 3:41pm UTC](https://www.ruby-forum.com/t/how-to-process-request-from-another-domain/108462/2 "2007-07-04T15:41:09Z")

</div>

if you have nothing to render, you can write this:

render :text =\> “”, :layout =\> false

this will not render your layout nor any output

---

<div class="post-metadata">

**Author:** ![rmehta](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/ea666f/32.png) [@rmehta](https://www.ruby-forum.com/u/rmehta)\
**Post date:** [July 4, 2007, 4:23pm UTC](https://www.ruby-forum.com/t/how-to-process-request-from-another-domain/108462/3 "2007-07-04T16:23:17Z")

</div>

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 B. [http://agileconsultingllc.com](http://agileconsultingllc.com)  
> > removed\_email\_address@domain.invalid
