Skip to content

Latest commit

 

History

History
19 lines (10 loc) · 728 Bytes

README.md

File metadata and controls

19 lines (10 loc) · 728 Bytes

Currency select

Provides a simple helper to get an HTML select list of currencies.

The value of the selected item is the ISO 4217 currency code for the selected currency.

This gem is modified from the 'country and region select' plugin on GitHub.

Installation

To install this gem in your Rails application, simply add it to your Gemfile:

gem 'currency_select'

Example

<%= currency_select :model, :currency, [["British Pound", "GBP"], ["US Dollar", "USD"]] %>

(In the above example, 'British Pound' and 'US Dollar' are priority currencies, meaning they appear at the top of the list of currencies.)