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. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
if you have nothing to render, you can write this: render :text => "", :layout => false this will not render your layout nor any output On 3 Jul., 20:31, Rm Rm <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> 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. > > -- > Posted viahttp://www.ruby-forum.com/.--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
render :nothing => true On Jul 4, 2007, at 9:40 AM, lanzm wrote:> > if you have nothing to render, you can write this: > > render :text => "", :layout => false > > this will not render your layout nor any output > > On 3 Jul., 20:31, Rm Rm <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote: >> 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.Rob Biedenharn http://agileconsultingllc.com Rob-xa9cJyRlE0mWcWVYNo9pwxS2lgjeYSpx@public.gmane.org --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---