qoobaa/s3 — Issue #58: `@[]' is not allowed as an instance variable name
Author: newstler
Created: 2011-11-28 10:49:43+00:00
State: open

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"=>#>},
"commit"=>"Создать Photo",
"locale"=>"ru"}

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

What could it be?