Rails Way to display if !blank?

Using unless instead of if !foo might make it easier on the eyes.

<% unless foo.blank? %>
<div class="foo_class"><%= foo %></div>
<% end %>

Shane

...and using content_tag (or elemental:
http://blog.dangosaur.us/elemental/) will let you golf it down to a
one-liner if you want.

<%= div(foo, :class => :foo_class) unless foo.blank? %>

~ j.