← September 2008 420 photos
October 2008
50 photos
November 2008 → 1101 photos
Browse Archive (303 months)
October 29, 2008 51 items
Blog Posts

Today I created a [Ruby on Rails](http://www.rubyonrails.org/) module to calculate shipping from FedEx. I based it on a similar [module from Ben Curtis which he wrote to calculate UPS](http://www.bencurtis.com/archives/2007/10/ups-shipping-with-rails/) shipping. We both based our modules on the [Shipping ruby gem](http://rubyforge.org/projects/shipping), which hasn't been updated in several years and no longer works with the current version of Rails as far as I can tell. My module is pretty straight forward, you feed it your zipcode, total weight and number of boxes and it gives you an array of prices and methods available from FedEx. You call it like this: `fedex = FEDEX::Client.new :account => '1000000', :meter => " 1000" , :origin_zip => '90000', :url => 'https://gateway.fedex.com/GatewayDC' fedex_quote = fedex.rate_list '80000', '500', '20'` You can check out and download my [FedEx shipping calculator module here](http://pastie.org/303738) on pastie.