Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 18 lines (12 sloc) 0.449 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
<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>

Something went wrong with that request. Please try again.