Re: Re: Re: Ruby on Rails to PHP

Walter Lee Davis
Fri, 03 Dec 2010 15:03:57 -0000

On Dec 3, 2010, at 4:49 AM, Koteswara rao Vuyyuru wrote:

> Colin Law wrote in post #965932:
>> On 3 December 2010 09:27, Koteswara rao Vuyyuru <lists@ruby-
>> forum.com>
>> wrote:
>>> Walter Davis wrote in post #965665:
>>>> On Dec 2, 2010, at 6:14 AM, Koteswara rao Vuyyuru wrote:
>>>>
>>>>> V.Koteswara Rao.
>>>> Please define what you mean by "calling". In what way
do you want
>>>> your
>>>> RoR site to "call" the Drupal site or vice-versa?
>>>>
>>>> Walter
>>>
>>> How to call RoR application from Drupal site.
>>
>> There is no point just repeating the same question.  You still have
>> not made it clear _exactly_ what you are trying to do.  The phrase
>> ''call RoR application from Drupal site'' does not mean
anything.  One
>> does not _call_ one site from another.  Please explain in more detail
>> what you want to do.
>>
>> Colin
>
> Dear Colin Sir,
>
> Suppose i am created one application on Ruby on Rails that
> application to ingrate from drupal site.
>
> How to call  ROR application from drupal site drupal site, Is is
> possible to access from drupal site.
>
> --
> 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@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
> .
>


You can /link/ from the Drupal site to the Rails site, and vice-versa,
using normal HTML. You can include parts of the Drupal site into the
Rails site using iframes if that''s what you want (also simply HTML).

If your Drupal site exposes an RSS feed, you can create a method which
requests that feed using Net::HTTP or similar, import the feed''s data
and use it /store it/ whatever in your Rails application.

If you want to do the opposite, you will need a Drupal plug-in to
"scrape" an RSS feed. I am certain that there are several to choose
from on the Drupal add-ons site. Rails will happily publish such a
feed from any controller''s method(s) with the addition of a couple of
extra lines of code. (Look at any of the Blog in 10 minutes
screencasts for an explicit example of how easy that is.)

So we are all still stuck on what you mean by the verb CALL. I am
feeling around in the dark here, with three separate and different
answers to what I am imagining your question is; but so far that''s all
I can offer you. Please meet me half way with a more elaborate
description of your use-case.

Walter