Forum: Ruby on Rails How can i render an external url?

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
042759d98c09d0e18eee30d0f4ee3093?d=identicon&s=25 Noel R. Morais (Guest)
on 2006-02-20 21:17
(Received via mailing list)
Hi everybody,



Well, how can I render an external url? In java, I do something like
this:



<html>

<head>

<title>External URL</title>

</head>

<body>



<jsp:include page="www.rubyonrails.org" />


</body>

</html>

Noel R. Morais

RFC - Ready for Calls

+55 (11) 3471-4005

www.rfcnet.com.br
5d15c6821f3c3054c04b85471824ba7c?d=identicon&s=25 Mikkel Bruun (Guest)
on 2006-02-20 21:23
(Received via mailing list)
On Monday, February 20, 2006, at 6:14 PM, Noel R. Morais wrote:
>Hi everybody,
>
>
><jsp:include page="www.rubyonrails.org" />
>


A niave implementation would be:

<%require 'open-uri'%>

<%=open("http://www.rubyonrails.org").read%>


Mikkel Bruun

www.strongside.dk    - Football Portal(DK)
nflfeed.helenius.org - Football News(DK)
ting.minline.dk      - Buy Old Stuff!(DK)
Ff82af3238a57fbd1212832ec1a19f28?d=identicon&s=25 Dylan Stamat (Guest)
on 2006-03-09 19:09
(Received via mailing list)
I thought having a new div including the output of the open "blind_down"
from the top of the page would be a cool idea.
However, I'm not trying to debug why Firefox crashes every time I click
on
the link_to_remote that triggers the RJS template to do this :)


On 20 Feb 2006 20:22:02 -0000, Mikkel Bruun <
This topic is locked and can not be replied to.