https://github.com/js-rails/currencyFormatter-rails
currencyFormatterJs packed for Rails asset pipeline
https://github.com/js-rails/currencyFormatter-rails
currency javascript jquery rails ruby-on-rails
Last synced: 28 days ago
JSON representation
currencyFormatterJs packed for Rails asset pipeline
- Host: GitHub
- URL: https://github.com/js-rails/currencyFormatter-rails
- Owner: js-rails
- License: mit
- Created: 2018-01-11T19:40:13.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-11-02T16:40:41.000Z (over 6 years ago)
- Last Synced: 2025-04-25T04:04:29.593Z (about 1 month ago)
- Topics: currency, javascript, jquery, rails, ruby-on-rails
- Language: Ruby
- Homepage: https://rubygems.org/gems/currencyFormatter-rails
- Size: 30.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.txt
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# CurrencyFormatter::Rails
[](https://rubygems.org/gems/currencyFormatter-rails)
[](https://rubygems.org/gems/currencyFormatter-rails)
[](https://github.com/tanvir002700/currencyFormatter-rails)
[](https://github.com/tanvir002700/currencyFormatter-rails/blob/master/LICENSE)This gem packages the jQuery currencyFormatter.js plugin. So you never have to download a custom package through the web interface again.
CurrencyFormatter.js allows you to format numbers as currencies. It contains 155 currency definitions and 715 locale definitions out of the box. It handles unusually formatted currencies, such as the INR.
See VERSIONS.md to see which versions of tabulator-rails bundle which versions of currencyFormatter.js.
## Installation
Add this line to your application's Gemfile:
```ruby
gem 'CurrencyFormatter-rails'
```And then execute:
$ bundle
Or install it yourself as:
$ gem install CurrencyFormatter-rails
And then edit your app/assets/stylesheets/application.js file to look something like:
``` css
/*
*= require jqeury
*= require currencyFormatter
*= require_self
*= require_tree .
*/
```**currencyFormatter-rails is dependant on jQuer, so make sure you have it in your Gemfile.**
## Usage
View [CurrencyFormatter.js](https://osrec.github.io/currencyFormatter.js/) for complete useage information.
## Contributing
Bug reports and pull requests are welcome on GitHub at https://github.com/tanvir002700/CurrencyFormatter-rails. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
## License
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
## Code of Conduct
Everyone interacting in the CurrencyFormatter::Rails project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/tanvir002700/CurrencyFormatter-rails/blob/master/CODE_OF_CONDUCT.md).