search for: tracking_numb

Displaying 3 results from an estimated 3 matches for "tracking_numb".

Did you mean: tracking_number
2006 Feb 13
1
hackish error handling
...39;'] redirect_to :back return end else flash[:notice] = verification[''Error''][0][''Message''] redirect_to :back return end mylabel = @fedex.label @label = "#{mylabel.tracking_number}.png" FileUtils.copy_file mylabel.image.path, "/localpath//#{@label}" rescue flash[:notice] = mylabel.message redirect_to :back return end
2005 Aug 25
0
Manually passing date for date_select
...make things easier on the user (say, if I know the user is going to use the form 3 times but some of the data will remain the same). I accomplish it like this: def add @inventory = Inventory.new(params[:inventory]) end And then, somewhere else... redirect to :action => :add, "inventory[tracking_number]" => 5 This works (although, is there a better, more rails-like way to do this?). It doesn''t work however when I have a date_select. I would expect this to work redirect to :action => :add, "inventory[invoice_on]" => Date.parse("8/4/1954") But the d...
2013 Dec 10
0
Fedex plugin Rails Issue.
...39;m facing is when ever i make a call to the fedex api for a shipping label it returns an error "Fedex::FedexError: Unable to get label from Fedex: Customs Value is required" Can some one help me how to mention the customs value for the label. This is how my code is: price, labels, tracking_number = fedex.label( :shipper => { :contact => shipper, :address => origin }, :recipient => { :contact => recipient, :address => destination.merge(:residential => false) }, :service_type => service_type, :packages => [{:length => 3,...