Sha256: f1e523a57f47b026f41c2c4a8962d040bca22d5ec3da69633fc752fbbce72cfc
Contents?: true
Size: 1.03 KB
Versions: 5
Compression:
Stored size: 1.03 KB
Contents
# CurrencySelect [![GitHub CI Status](https://github.com/braingourmets/currency_select/workflows/CI/badge.svg?branch=main)](https://github.com/braingourmets/currency_select/actions) [![Gem Version](https://badge.fury.io/rb/currency_select.svg)](http://badge.fury.io/rb/currency_select) Adds a currency_select helper to Ruby on Rails projects, allowing you to get a HTML select list of available currencies. The list of currencies are provided by the [Money gem](https://rubygems.org/gems/money). ## Installation Add the following to your Gemfile: ```ruby gem 'currency_select' ``` ## Example ```ruby currency_select('user', 'currency') ``` ### form_for example ``` <%= f.currency_select(:currency, ["USD", "EUR", "CAD"], {}, {class: "form-control"}) -%> ``` ## Contributing to this project ### Code of Conduct This project adheres to a [Contributor Code of Conduct](CODE_OF_CONDUCT.md). By participating in this project and its community, you are expected to uphold this code. ## Maintainers * [Oliver Klee](https://github.com/oliverklee)
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
currency_select-5.0.1 | README.md |
currency_select-5.0.0 | README.md |
currency_select-4.1.0 | README.md |
currency_select-4.0.0 | README.md |
currency_select-3.0.0 | README.md |