This repository was archived by the owner on Jul 13, 2023. It is now read-only.
This repository was archived by the owner on Jul 13, 2023. It is now read-only.
`@[]' is not allowed as an instance variable name #655
Closed
Description
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?
Metadata
Metadata
Assignees
Labels
No labels