Creating fancy money entry for your Rails app
You could just use regular integer inputs for allowing your users to input money amounts. But, it's a lot nicer if the input automatically translates a plain integer to a formatted string. So, 2000.23 becomes *2,000.23 while someone types in the form input.
Like this:
I wrote a blog post on how to do this. Take a look at: Creating fancy money entry for your Rails app.
Written by Michiel Sikkes
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Ruby
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#