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.
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.