<%= if this.nil? nil_view unless if_present else if this.is_a?(Array) count elsif this.is_a?(Class) type_name(attributes) elsif (name_attr = this.class.try.name_attribute) && can_view?(this, name_attr) view(merge_attrs(attributes, {:field => name_attr})) elsif can_view?(this) h this.to_s end end %>