`@[]' is not allowed as an instance variable name #19

Closed
newstler opened this Issue Nov 28, 2011 · 1 comment

Comments

Projects
None yet
2 participants

Hi!

I try to implement this tutorial: http://thewebfellas.com/blog/2010/1/31/paperclip-vs-amazon-s3-european-buckets with Ruby 1.9.2, Rails 3.1.3, Mongoid 2.2.0, mongoid-paperclip 0.0.7, s3 0.3.9

And I get this error:

NameError in PhotosController#create

`@[]' is not allowed as an instance variable name

lib/patches/paperclip.rb:33:in `block in extended'
lib/patches/paperclip.rb:32:in `instance_eval'
lib/patches/paperclip.rb:32:in `extended'

Request

Parameters:

{"utf8"=>"✓",
 "authenticity_token"=>"neUiYqS3PMWismvVWPSnqUV5NLfAiurkd2x+nslOOAY=",
 "photo"=>{"name"=>"sfs",
 "description"=>"sdd",
 "image"=>#<ActionDispatch::Http::UploadedFile:0x007fe51f274708 @original_filename="IMG_2827new12.jpg",
 @content_type="image/jpeg",
 @headers="Content-Disposition: form-data; name=\"photo[image]\"; filename=\"IMG_2827new12.jpg\"\r\nContent-Type: image/jpeg\r\n",
 @tempfile=#<File:/var/folders/q8/1cs1q0550x96dq1w1z81f8m40000gn/T/RackMultipart20111128-86583-m3qq5v>>},
 "commit"=>"Создать Photo",
 "locale"=>"ru"}

My /lib/patches/paperclip.rb is https://gist.github.com/1399954

What could it be?

Collaborator

tilsammans commented Aug 11, 2016

You don't need that file any more, now use the aws-sdk gem.

@tilsammans tilsammans closed this Aug 11, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment