ruby on rails - undefined method `find' for AWS::S3::Bucket:Class -


i'm working on implementing amazon s3 uploader rails project.

i'm trying access bucket can assign images variable , list them.

i keep getting following error when try view new action in uploads controller:

undefined method `find' aws::s3::bucket:class 

here uploads_controller.rb

class uploadscontroller < applicationcontroller require 'aws/s3'    def new      photo_bucket = aws::s3::bucket.find('photos')     @photos = photo_bucket.objects   end end 

the find method documented here http://amazon.rubyforge.org/.

any clue going on here?

thanks.

here gemfile:

gem 'paperclip' gem 'aws-s3' gem 'aws-sdk' gem 'rails', '3.2.0' gem 'bcrypt-ruby', '3.0.1' gem 'nokogiri' gem 'kaminari' gem 'acts-as-taggable-on', '~> 2.2.2' gem 'omniauth-twitter' gem 'omniauth-facebook' gem "friendly_id", "~> 4.0.1" 

you can't use aws-s3 , aws-sdk since conflict each other.


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -