Skip to content

Instantly share code, notes, and snippets.

@francirp
Created August 8, 2016 15:22
Show Gist options
  • Save francirp/ce202e99ee1e2f3588de3fd1efd9ca0f to your computer and use it in GitHub Desktop.
Save francirp/ce202e99ee1e2f3588de3fd1efd9ca0f to your computer and use it in GitHub Desktop.
Decorators - Code Block 1
<ul>
  <li>Budget: <%= number_to_currency(@company.budget, precision: 0) %></li>
  <li>Actual: <%= number_to_currency(@company.actual, precision: 0) %></li>
  <li>Percent Spent: <%= number_to_percentage(@company.percent_budget_spent * 100, precision: 1) %></li>
</ul>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment