Thanks for the suggestion. Did that, cleared history and restarted 
passenger but it's still the same. The upload works for single and multiple 
files, but the update method is stuck. More info:

Arve

Started PUT 
"/projectfiles/1-freskt?render[0][id]=image&render[0][part_context]=undefined" 
for 127.0.0.1 at 2012-10-23 22:22:36 +0200
Processing by ProjectfilesController#update as JS
  Parameters: {"page_path"=>"/projectfiles/1-freskt/edit", 
"authenticity_token"=>"rHt9RofH02OH8bvdj9ZW7lZXC74FLr3Ymt417MzXcCo=", 
"projectfile"=>{"prattach"=>#<ActionDispatch::Http::UploadedFile:0x007f9f57672ea8
 
@original_filename="Screen Shot 2012-09-14 at 1.31.54 AM.png", 
@content_type="image/png", @headers="Content-Disposition: form-data; 
name=\"projectfile[prattach]\"; filename=\"Screen Shot 2012-09-14 at 
1.31.54 AM.png\"\r\nContent-Type: image/png\r\n", 
@tempfile=#<File:/var/folders/ww/z22b7qzd0cd7w55798byhhzm0000gn/T/RackMultipart20121023-23827-1niwkep>>},
 
"render"=>{"0"=>{"id"=>"image", "part_context"=>"undefined"}}, 
"id"=>"1-freskt"}
  User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = ? 
LIMIT 1  [["id", "1"]]
  Projectfile Load (0.1ms)  SELECT "projectfiles".* FROM "projectfiles" 
WHERE "projectfiles"."id" = ? LIMIT 1  [["id", "1-freskt"]]
Command :: identify -format %wx%h :file
Command :: convert :source -auto-orient -resize "200x" -crop 
"200x138+0+2338" +repage :dest
Command :: identify -format %wx%h :file
Command :: convert :source -auto-orient -resize "100x100>" :dest
   (0.1ms)  begin transaction
   (0.3ms)  UPDATE "projectfiles" SET "prattach_updated_at" = '2012-10-23 
20:22:37.011738', "updated_at" = '2012-10-23 20:22:37.151938' WHERE 
"projectfiles"."id" = 1
[paperclip] Saving attachments.
[paperclip] deleting 
lib/prattach/original/Screen_Shot_2012-09-14_at_1.31.54_AM.png
[paperclip] deleting 
lib/prattach/medium/Screen_Shot_2012-09-14_at_1.31.54_AM.png
[paperclip] deleting 
lib/prattach/thumb/Screen_Shot_2012-09-14_at_1.31.54_AM.png
   (4.2ms)  commit transaction
Completed 500 Internal Server Error in 164ms

Dryml::PartContext::TamperedWithPartContext 
(Dryml::PartContext::TamperedWithPartContext):
  app/controllers/projectfiles_controller.rb:28:in `block (3 levels) in 
update'
  app/controllers/projectfiles_controller.rb:27:in `block in update'
  app/controllers/projectfiles_controller.rb:26:in `update'


  Rendered 
/Users/arvevoldsund/.rvm/gems/ruby-1.9.3-p0@rails317/gems/actionpack-3.2.8/lib/action_dispatch/middleware/templates/rescues/_trace.erb
 
(1.4ms)
  Rendered 
/Users/arvevoldsund/.rvm/gems/ruby-1.9.3-p0@rails317/gems/actionpack-3.2.8/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb
 
(1.2ms)
  Rendered 
/Users/arvevoldsund/.rvm/gems/ruby-1.9.3-p0@rails317/gems/actionpack-3.2.8/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb
 
within rescues/layout (9.3ms)



kl. 22:10:10 UTC+2 tirsdag 23. oktober 2012 skrev Arve Voldsund følgende:
>
> Hi,
>
> I have an upload that is working pretty fine, but the update method (which 
> is copied from the sgagility example and is working in other controllers) 
> complains like this:
>
> Dryml::PartContext::TamperedWithPartContext 
> (Dryml::PartContext::TamperedWithPartContext):
>
> I've tried renaming because google returned an issue with long context 
> names, but to no avail. I'm stuck on this one, and it would be fine to get 
> the update method to complete the ajax response and do the redirect :)
>
> Anyone had this before?
>

-- 
You received this message because you are subscribed to the Google Groups "Hobo 
Users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/hobousers/-/EG8-P271mooJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/hobousers?hl=en.

Reply via email to