Our great sponsors
-
rails-i18n
Repository for collecting Locale data for Ruby on Rails I18n as well as other interesting, Rails related I18n stuff
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
-
eu_central_bank
A gem that calculates the exchange rate using published rates from European Central Bank. Compatible with the money gem
Money-Rails integrates the money gem in Rails. It can handle automatic conversion between the database representation of money to Money instances. These instances can then be used to access all helpers available from the money gem (we will get to an overview of those helpers later in this post).
Note that if you are using rails-i18n, configuration is automatically available for many locales.
You can provide a custom exchange rate store to handle this automatically. There are also some exchange rate implementations already available as gems. For example, you can drop in the eu_central_bank exchange rate store to fetch the latest exchange rates from the European Central Bank.
Many other options are available to customize this for your Ruby on Rails app. Check out the full details in the money and money-rails guides.