Use URL only if aviable


#1

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


#2

anybody knows a solution? I would love to hear it :wink:


#3

On Tue, Jan 27, 2009 at 9:45 AM, Andi G.
removed_email_address@domain.invalid 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 S. ------------------------ removed_email_address@domain.invalid