Hunter,
Did you ever get this working? I''d like to know the solution...
On 10/26/05, Hunter Hillegas
<lists-HAWAbpnI61OZ1JSuHaJ1sQC/G2K4zDHf@public.gmane.org>
wrote:>
> Hi,
>
> I am trying to use the Ruby shipping gem (http://shipping.rubyforge.org/)
> to
> get prices from FedEx. Has anyone used this? I have some questions:
>
> * Instead of using the shipping.yml file in a user''s home
directory, is
> there somewhere else I can put it? This is a Rails app so I don''t
really
> want to put stuff in the home directory of the user.
>
> * I must be doing something wrong. I get the same price every time. My
> code
> is as follows (the account details are constants):
>
> ship = Shipping::Base.new :packaging_type => "FEDEXBOX", :zip
=> ''93101'',
> :state => ''CA'', :sender_zip =>
''89109'', :weight => ''2'', :service_type
=>
> ''PRIORITYOVERNIGHT''
>
> ship.fedex_account = FEDEX_ACCOUNT
> ship.fedex_meter = FEDEX_METER
> ship.fedex_url = FEDEX_URL
>
> logger.debug "PRICE: #{ship.fedex.price} WEIGHT: #{@total_weight}
GRADE:
> #{ship.service_type}"
>
> If I change the service type to 2-day or ground, I always get the same
> price, 3.75.
>
> What am I doing wrong? How can I get the prices for different service
> levels?
>
> Thanks,
> Hunter
>
>
> _______________________________________________
> Rails mailing list
> Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
> http://lists.rubyonrails.org/mailman/listinfo/rails
>
--
seth at subimage interactive
http://www.subimage.com/sublog/
_______________________________________________
Rails mailing list
Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
http://lists.rubyonrails.org/mailman/listinfo/rails