Getting XML from different controller

Hi!

Say, I’m in controller X and want to parse the XML (.rxml template)
output of controller Y. How can I do that? I’ve tried to open() it over
http, but that results in a timeout.

Thanks a lot,
HW

Say, I’m in controller X and want to parse the XML (.rxml template)
output of controller Y. How can I do that? I’ve tried to open() it over
http, but that results in a timeout.

Probably you are using webrick which is single threaded, hence the
second request can’t be processed until the first finishes?

Switch to a different webserver for your development

Ed W

Although intuitively, having controller X parse the XML generated by
controller Y seems a bit odd. Why could controller X not reuse the
model code that controller Y uses to generate the data it sticks in the
XML? The whole XML step seems unecessary to me.

Fred

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs