Number to Currency Outside Rails

I created a module I am also using both in rails and for some batch processing outside of rails. In order to ensure my data was formatted the same with both environments, I needed to figure out how to get access to the active_view helper number_to_currency outside of rails. Here is how I did it:

require 'rubygems'
require 'action_view'
 
def number_to_currency(number, options = {})
  ActionView::Base.new.number_to_currency(number, options)
end

CoachHandbags

Welcome to http://www.replicahandbagsone.com As much as fringe handbags continue Replica Handbags, Fake Handbags, Louis Vuitton Handbags and Replica Louis Vuitton Handbags come in style and then back Replica Louis Vuitton, Coach Handbags, Marc Jacobs Handbags and Louis Vuitton Wallets style, I am always sitting on the fence between strongly disliking them Miu Miu Handbags, Chanel Wallets, Prada Handbags and Gucci Handbags having a slight bit of curiosity towards them. Sure, some designers are able Coach Wallets, Chanel Handbags, Jimmy Choo Handbags and Bally Handbags create a much more subdued fringe bag, while others Chloe Handbags, Bottega Veneta Handbags, Balenciaga Handbags and Balenciaga Wallets all about fringe coming from every orifice of the bag and dragging down to the floor.

number_to_currency

Thanks, Steven. Your solution is a big help.