I don't get it Chris, I merged your pull request to testerclip in and
funnily the lines in development.rb, were left in after the merge, even tho
the repo notes them as removed. Sheesh.

That's a Github thing, I'm not sure what's going on there. So I just
updated the files manually locally as per your findings and *the exact
error persisted*. I wasn't seeing the file upload work in the test app.

I am seeing the MIME types come down in the terminal which is good. (Were
those there before?)

Started POST "/checkins" for 127.0.0.1 at 2014-02-22 23:53:03 -0800

Processing by CheckinsController#create as JS

  Parameters: {"utf8"=>"✓",
"authenticity_token"=>"pbpEpWcpdRFd+Z2Wd7TXaTiGarKpmvkacHrFMhPTaD8=",
"checkin"=>{"name"=>"nico",
"photo"=>#<ActionDispatch::Http::UploadedFile:0x00000105170c40
@original_filename="kitteh.jpg", @content_type="image/jpeg",
@headers="Content-Disposition: form-data; name=\"checkin[photo]\";
filename=\"kitteh.jpg\"\r\nContent-Type: image/jpeg\r\n",
@tempfile=#<Tempfile:/var/folders/cm/9k3f22ms213_zj6fgf2mwlqr0000gn/T/RackMultipart20140222-59300-561z2h>>},
"commit"=>"Submit a photo", "remotipart_submitted"=>"true",
"X-Requested-With"=>"IFrame", "X-Http-Accept"=>"text/javascript,
application/javascript, application/ecmascript, application/x-ecmascript,
*/*; q=0.01"}

Completed 500 Internal Server Error in 2.2ms

But then this again:

TypeError (no implicit conversion of Symbol into String):

  app/controllers/checkins_controller.rb:31:in `checkin_params'
  app/controllers/checkins_controller.rb:9:in `create'

So it's getting late here and this is making my brain hurt. I'd love to
hear your process for getting a file upload success. Let's touch base again
tomorrow. Once I get the test app to work I'll look into applying it to
Scenic49, unless you get that going on your own!

Thanks again for getting into this with me. You're a rockstar!


On Sat, Feb 22, 2014 at 9:51 PM, Chris Weilemann
<notifications@github.com>wrote:

> In config/initializers/paperclip.rb:
>
> >  Paperclip::Attachment.default_options[:path] = '/:class/:attachment/:id_partition/:style/:filename'
> > -
> > -
> >  Paperclip::Attachment.default_options[:storage] = :s3
> >  Paperclip::Attachment.default_options[:s3_protocol] = 'http'
> >  Paperclip::Attachment.default_options[:s3_credentials] =
> >    { :bucket => ENV['AWS_BUCKET_NAME'],
> >      :access_key_id => ENV['AWS_ACCESS_KEY'],
> >      :secret_access_key => ENV['AWS_SECRET_KEY'] }
>
> I tested using my own AWS bucket which I configured using Figaro - it
> worked. :)
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/panicbus/testerclip/pull/1/files#r9974488>
> .
>