Forum: Ruby on Rails Use URL only if aviable

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.
5c087c6a1b61f6080ed2bc81787e0fbc?d=identicon&s=25 Andi Geheim (chaosbanane)
on 2009-01-27 18:45
hi

I have an RSS feed on my page and if the rss source is not aviable it
prints out an error.

------------------------------------------------------------------------

<%= parseFeed("http://www.domain.de/phpBB3/rss.php", 10) %>

------------------------------------------------------------------------

How can I tell ruby only to use the rss feed if the rss source is
aviable?

something like unless? or so?



Greetings Chaos
5c087c6a1b61f6080ed2bc81787e0fbc?d=identicon&s=25 Andi Geheim (chaosbanane)
on 2009-02-01 15:08
anybody knows a solution? I would love to hear it ;-)
Bee69cfed999cd13e3bff73d472a39ee?d=identicon&s=25 Hassan Schroeder (Guest)
on 2009-02-01 17:09
(Received via mailing list)
On Tue, Jan 27, 2009 at 9:45 AM, Andi Geheim
<rails-mailing-list@andreas-s.net> wrote:

> I have an RSS feed on my page and if the rss source is not aviable it
> prints out an error.

> <%= parseFeed("http://www.domain.de/phpBB3/rss.php", 10) %>

<http://catb.org/~esr/faqs/smart-questions.html>

--
Hassan Schroeder ------------------------ hassan.schroeder@gmail.com
This topic is locked and can not be replied to.