Skip to content

Instantly share code, notes, and snippets.

@birchestx
Created October 30, 2014 02:10
Show Gist options
  • Save birchestx/1e324ae0906222a17b3f to your computer and use it in GitHub Desktop.
Save birchestx/1e324ae0906222a17b3f to your computer and use it in GitHub Desktop.
number_to_currency example
<%= f.input :handling_fee, label:"Flat Surcharge" , as: :string,
input_html: { value: number_to_currency(f.object.handling_fee, locale: :fr) } %>
In order for this to work I needed to add the gem rails-i18n
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment