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.
We're not using this gem anymore, so we'm looking for a new maintainer. If
you're interested in becoming the new maintainer, please contact us at
info AT braingourmets DOT com
.
Add the following to your Gemfile:
gem 'currency_select'
currency_select('user', 'currency')
<%= f.currency_select(:currency, ["USD", "EUR", "CAD"], {}, {class: "form-control"}) -%>
This project adheres to a Contributor Code of Conduct. By participating in this project and its community, you are expected to uphold this code.