display optional db data

Dan Marks
2010-04-14T21:13:50Z

ive got a few models that may or may not have some data: urls / phone
numbers / dates / times / etc
whats the best way to test and format this data for displaying on a
webpage?

the way im thinking of doing it would be a few lines of code to:
- test if not null
- format properly
- display in proper div / ul container

and then do that for each thing
is there a cleaner way to do this?
--
Posted via http://www.ruby-forum.com/.