How to get the currency exchange rate in rails?
2 answers
The answer can be found at @aurelius link. Without using, exchange_to
there is a direct way to get just the exchange rate. Since I am using a google currency
gem and configured it as default_bank
in an initializer, I can get a speed like this:
MoneyRails.default_bank.get_rate(:LKR, :USD)
+1
source to share