undefined method `xml_in' for XmlSimple:Class (NoMethodError

D

dare ruby

Dear Friends,

I would like to upload my files to AWS:S3.

I have created a application like,

require 'rubygems'
require 'ftools'
require 'aws/s3'
require 'activerecord'


class Upload < ActiveRecord::Base
#--------------------------------
include AWS::S3

connection = AWS::S3::Base.establish_connection!(
:access_key_id => '123',
:secret_access_key => '123'
)

Bucket.create('jukebox')

music_bucket = Bucket.find('jukebox')

end

Iam receiving the below error while creating buckets, like

c:/ruby/lib/ruby/gems/1.8/gems/aws-s3-0.6.2/lib/aws/s3/parsing.rb:64:in
`parse': undefined method `xml_in' for XmlSimple:Class (NoMethodError)
from
c:/ruby/lib/ruby/gems/1.8/gems/aws-s3-0.6.2/lib/aws/s3/parsing.rb:55:in
`initialize'
from
c:/ruby/lib/ruby/gems/1.8/gems/aws-s3-0.6.2/lib/aws/s3/response.rb:55:in
`new'
from
c:/ruby/lib/ruby/gems/1.8/gems/aws-s3-0.6.2/lib/aws/s3/response.rb:55:in
`unmemoized_parsed_1274248721'
from
c:/ruby/lib/ruby/gems/1.8/gems/aws-s3-0.6.2/lib/aws/s3/extensions.rb:177:in
`send'
from
c:/ruby/lib/ruby/gems/1.8/gems/aws-s3-0.6.2/lib/aws/s3/extensions.rb:177:in
`parsed'
from
c:/ruby/lib/ruby/gems/1.8/gems/aws-s3-0.6.2/lib/aws/s3/extensions.rb:146:in
`expirable_memoize'
from
c:/ruby/lib/ruby/gems/1.8/gems/aws-s3-0.6.2/lib/aws/s3/extensions.rb:176:in
`parsed'
from
c:/ruby/lib/ruby/gems/1.8/gems/aws-s3-0.6.2/lib/aws/s3/response.rb:45:in
`error?'
from
c:/ruby/lib/ruby/gems/1.8/gems/aws-s3-0.6.2/lib/aws/s3/base.rb:72:in
`request'
from
c:/ruby/lib/ruby/gems/1.8/gems/aws-s3-0.6.2/lib/aws/s3/base.rb:88:in
`put'
from
c:/ruby/lib/ruby/gems/1.8/gems/aws-s3-0.6.2/lib/aws/s3/bucket.rb:79:in
`create'
from awstesting.rb:16

Could any one suggest on the above issue?

Thanks in advance

Regards,
Jose
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,968
Messages
2,570,153
Members
46,699
Latest member
AnneRosen

Latest Threads

Top