When trying to import a vcf with a url I get an error in the following function... vcard.rb 504: def decode_uri(field) #:nodoc: 505: Line.new( field.group, field.name, Uri.new(field.value) ) 506: end There is no class Uri. Any idea where it might have gone?
Quoting henryj at paradise.net.nz, on Sat, Feb 24, 2007 at 03:31:37PM +1300:> When trying to import a vcf with a url I get an error in the > following function... > > vcard.rb > 504: def decode_uri(field) #:nodoc: > 505: Line.new( field.group, field.name, Uri.new(field.value) ) > 506: end > > There is no class Uri. Any idea where it might have gone?Sorry. It went to Attachment::Uri. Sam
On 26/02/2007, at 7:31 PM, Sam Roberts wrote:> Quoting henryj at paradise.net.nz, on Sat, Feb 24, 2007 at 03:31:37PM > +1300: >> When trying to import a vcf with a url I get an error in the >> following function... >> >> vcard.rb >> 504: def decode_uri(field) #:nodoc: >> 505: Line.new( field.group, field.name, Uri.new(field.value) ) >> 506: end >> >> There is no class Uri. Any idea where it might have gone? > > Sorry. It went to Attachment::Uri.Attachment::Uri#new take two arguments. What should the second be, the protocol? def initialize(uri, format) #:nodoc: