<%= this && (format||= :default) && I18n.backend.localize(I18n.locale, this, format) %>
<%= this && (format||= :time) && (format.is_a?(Symbol) ? this.to_s(format) : this.strftime(format) ) %>
<%= this && (format||= :default) && I18n.backend.localize(I18n.locale, this, format) %>
<%= format ? format % this : number_with_delimiter(this) %>
<%=
if this.html_safe?
this
elsif !(this.class == String) && this.respond_to?(:to_html) # workaround for Maruku which adds String#to_html : (
this.to_html(scope.xmldoctype)
else
h(this).gsub("\n", "
").html_safe
end
%>
<%=
model = this_parent.class
I18n.t(
"activerecord.attributes.#{model.to_s.downcase}/#{this_field}s.#{this}",
:default => this.titleize)
%>
<%= this ? t('hobo.boolean_yes', :default => 'Yes') : t('hobo.boolean_no', :default => 'No') %>