What's the most elegant way to do:

if a exists
        render a
else
        render b
end

?

I was going to write a helper that just relies on the exception, but I  
wondered if there was already a concise way to do this.

--~--~---------~--~----~------------~-------~--~----~
SD Ruby mailing list
[email protected]
http://groups.google.com/group/sdruby
-~----------~----~----~----~------~----~------~--~---

Reply via email to