Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: master
Fetching contributors…

Cannot retrieve contributors at this time

18 lines (12 sloc) 0.449 kB
<dl>
<dt>Number to Currency</dt>
<dd><%= number_to_currency(123.56) %></dd>
<dt>Number to Human</dt>
<dd><%= number_to_human(100_555_123.15) %></dd>
<dt>Date</dt>
<dd><%=l Time.current, format: :long %></dd>
<dt>Time</dt>
<dd><%= distance_of_time_in_words(1.hour + 20.minutes) %></dd>
<dt>Article attributes</dt>
<dd><%= [:title, :body, :body_html].map { |attr| Article.human_attribute_name(attr) }.join(", ") %></dd>
</dl>
Jump to Line
Something went wrong with that request. Please try again.