Skip to content

Instantly share code, notes, and snippets.

@fedesoria
Created May 28, 2010 20:00
Show Gist options
  • Save fedesoria/417655 to your computer and use it in GitHub Desktop.
Save fedesoria/417655 to your computer and use it in GitHub Desktop.
// Es de Yahoo, pero puedes cambiarlo a cualquier pagina que publique el tipo de cambio
mx_rate = YahooCurrency.get_rate!("USD", "MXN")
sub_number_to_currency(@product.price * mx_rate.rate)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment