[Rails] VCard Upload Import

Kyle Mathews
Thu, 12 Jan 2006 23:04:42 -0000

I still get the same "cannot convert StringIO into String" error
message when I changed it to File.read

- Kyle


On Jan 12, 2006, at 5:55 PM, Benjamin Stiglitz wrote:

>> if request.post? and params[:import_file]
>> 	cards = Vpim::Vcard.decode(File.open(params[:import_file]))
>> end
>
> Try File::read instead of File::open.
>
> -Ben
> _______________________________________________
> Rails mailing list
> Rails@lists.rubyonrails.org
> http://lists.rubyonrails.org/mailman/listinfo/rails