When attempting to attach a label with paperclip I am getting
Paperclip::AdapterRegistry::NoHandlerError
class Ticket < ActiveRecord::Base
has_attached_file :fedex_label, content_type: { content_type: "application/pdf" }
I am putting my code here:
begin
label = fedex.label(:filename => "tmp/#{@ticket.id}_ship_label.pdf",
:shipper=>shipper,
:recipient => recipient,
:packages => packages,
:service_type => "FEDEX_GROUND",
:shipping_options => shipping_options,
:label_specification => size_settings)
@ticket.fedex_label = label.file_name
@ticket.save!
@track_number = label.response_details[:completed_shipment_detail][:completed_package_details][:tracking_ids][:tracking_number].to_s
rescue Fedex::RateError => e
@fedex_error = e
end
Is anyone else having a problem with this?
When attempting to attach a label with paperclip I am getting
Paperclip::AdapterRegistry::NoHandlerErrorI am putting my code here:
Is anyone else having a problem with this?