Created
October 30, 2014 02:10
-
-
Save birchestx/1e324ae0906222a17b3f to your computer and use it in GitHub Desktop.
number_to_currency example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<%= 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